public LEDBackpack Add(int16_t width, int16_t height, Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, byte addr)
 {
     var b = new LEDBackpack(width, height, nusbio, sdaOutPin, sclPin);
     if (b.Detect(addr)) { 
         b.Begin(addr);
         this._backpacks.Add(b);
         return b;
     }
     else return null;
 }
Ejemplo n.º 2
0
        public LEDBackpack Add(int16_t width, int16_t height, byte addr)
        {
            var b = new LEDBackpack(width, height);

            if (b.Detect(addr))
            {
                b.Begin(addr);
                this._backpacks.Add(b);
                return(b);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 3
0
        public LEDBackpack Add(int16_t width, int16_t height, Nusbio nusbio, NusbioGpio sdaOutPin, NusbioGpio sclPin, byte addr)
        {
            var b = new LEDBackpack(width, height, nusbio, sdaOutPin, sclPin);

            if (b.Detect(addr))
            {
                b.Begin(addr);
                this._backpacks.Add(b);
                return(b);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 4
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);
            }
        }