예제 #1
0
        public LEDBackpack Add(I2CDevice_FTDI i2c, int16_t width, int16_t height, int addr)
        {
            var b = new LEDBackpack(i2c, width, height);

            if (b.Detect((byte)addr))
            {
                b.Begin(addr);
                this._backpacks.Add(b);
                return(b);
            }
            else
            {
                return(null);
            }
        }
예제 #2
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);
 }
예제 #3
0
 public LEDBackpack(I2CDevice_FTDI i2c, int16_t width, int16_t height) : base(width, height)
 {
     _i2c          = i2c;
     this.DeviceId = _i2c.DeviceId;
 }