Example #1
0
 public LiquidCrystal_I2C_PCF8574(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, int cols, int rows, int deviceId = 0x27, bool debug = false, int backlight = LCD_NOBACKLIGHT) : base(nusbio)
 {
     base.NumCols       = (uint8_t)cols;
     base.NumLines      = (uint8_t)rows;
     this._i2c          = new I2CEngine(nusbio, sdaOutPin, sclPin, (byte)deviceId, debug);
     this._backlightval = backlight;
     this._i2c.DeviceId = (byte)deviceId;
     this.DeviceID      = deviceId;
     this._nusbio       = nusbio;
 }
Example #2
0
 public MCP9808_TemperatureSensor(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, byte deviceId = MCP9808_I2CADDR_DEFAULT, int waitTimeAfterWriteOperation = 5, bool debug = false)
 {
     this._i2c    = new I2CEngine(nusbio, sdaOutPin, sclPin, deviceId, debug);
     this._nusbio = nusbio;
 }
 public IS31FL3731(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, byte deviceId = ISSI_ADDR_DEFAULT, int width = 16, int height = 9) :
     base((Int16)width, (Int16)height)
 {
     this._i2c    = new I2CEngine(nusbio, sdaOutPin, sclPin, deviceId);
     this._nusbio = nusbio;
 }
 public MCP9808_TemperatureSensor(Nusbio nusbio, NusbioGpio sdaOutPin,  NusbioGpio sclPin, byte deviceId = MCP9808_I2CADDR_DEFAULT, int waitTimeAfterWriteOperation = 5, bool debug = false)
 {
     this._i2c = new I2CEngine(nusbio, sdaOutPin, sclPin, deviceId, debug);
     this._nusbio = nusbio;
 }
Example #5
0
 public LiquidCrystal_I2C(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, int cols, int rows, byte deviceId = 0x27, bool debug = false)
 {
     this._cols = (uint8_t)cols;
     this._rows = (uint8_t)rows;
     this._nusbio = nusbio;
     this._i2c = new I2CEngine(nusbio, sdaOutPin, sdaOutPin, sclPin, 0, debug);
     this._backlightval = LCD_NOBACKLIGHT;
     this._i2c.DeviceId = deviceId;
 }
Example #6
0
 public MCP230XX_Base(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin)
 {
     this._nusbio = nusbio;
     this._i2c = new I2CEngine(nusbio, sdaOutPin, sclPin, 0);
     this.GPIOS = new Dictionary<string, GpioPublicApiBase>();
 }
 public MCP4725_12BitDac(Nusbio nusbio, NusbioGpio sdaOutPin,  NusbioGpio sclPin, byte deviceId, int waitTimeAfterWriteOperation = 5, bool debug = false)
 {
     this._i2c = new I2CEngine(nusbio, sdaOutPin, sclPin, deviceId, debug);
 }
Example #8
0
 public MCP230XX_Base(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin)
 {
     this._nusbio = nusbio;
     this._i2c    = new I2CEngine(nusbio, sdaOutPin, sclPin, 0);
     this.GPIOS   = new Dictionary <string, GpioPublicApiBase>();
 }
Example #9
0
 public LEDBackpack(int16_t width, int16_t height, Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin)
     : base(width, height)
 {
     this._nusbio = nusbio;
     this._i2c = new I2CEngine(nusbio, sdaOutPin, sclPin, 0);
 }
Example #10
0
 public LEDBackpack(int16_t width, int16_t height, Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin)
     : base(width, height)
 {
     this._nusbio = nusbio;
     this._i2c    = new I2CEngine(nusbio, sdaOutPin, sclPin, 0);
 }
Example #11
0
 public MCP4725_12BitDac(Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, byte deviceId, int waitTimeAfterWriteOperation = 5, bool debug = false)
 {
     this._i2c = new I2CEngine(nusbio, sdaOutPin, sclPin, deviceId, debug);
 }
Example #12
0
 public EEPROM_24LCXXX_BASE(Nusbio nusbio, NusbioGpio sdaPin, NusbioGpio sclPin, int kBit, bool debug = false)
 {
     this._kBit = kBit;
     this._i2c = new I2CEngine(nusbio, sdaPin, sclPin, 0, debug);
 }