//SPI constructor public SSD1603(SSD1603Configuration config, SpiDevice device, GpioPin pinCmdData, GpioPin pinReset = null) : this(config, BusTypes.SPI) { this._controller = new SSD1603Controller(device, pinCmdData, pinReset); this.Init().Wait(); }
//I2c constructor public SSD1603(SSD1603Configuration config, I2cDevice device, GpioPin pinReset = null) : this(config, BusTypes.I2C) { this._controller = new SSD1603Controller(device, pinReset); this.Init().GetAwaiter(); }