Пример #1
0
        public static void SetBack(byte red, byte green, byte blue)
        {
            if (red > 0x3F)
            {
                red = 0x3F;
            }

            if (green > 0x3F)
            {
                green = 0x3F;
            }

            if (blue > 0x3F)
            {
                blue = 0x3F;
            }

            I2C.WriteByte(I2C.Registers.Leds.Back.Red, red);
            I2C.WriteByte(I2C.Registers.Leds.Back.Green, green);
            I2C.WriteByte(I2C.Registers.Leds.Back.Blue, blue);
        }