public MeadowApp() { Initialize(); Thread.Sleep(1000); Brightness(); Thread.Sleep(1000); _iS31FL3731.Clear(); RunExplicit(); Thread.Sleep(1000); _iS31FL3731.Clear(); RunImplicit(); Thread.Sleep(5000); _iS31FL3731.Clear(); }
public CharlieWing(II2cBus i2cBus, I2cAddress address = I2cAddress.Adddress0x74) { Brightness = 255; pen = Color.White; iS31FL3731 = new Is31fl3731(i2cBus, (byte)address); iS31FL3731.Initialize(); for (byte i = 0; i <= 7; i++) { iS31FL3731.SetLedState(i, true); iS31FL3731.Clear(i); } }
void Initialize() { Console.WriteLine("Initialize hardware..."); _i2cBus = Device.CreateI2cBus(); _iS31FL3731 = new Is31fl3731(_i2cBus, 0x74); _iS31FL3731.Initialize(); Console.WriteLine("Clear all frames..."); for (byte i = 0; i <= 7; i++) { _iS31FL3731.SetLedState(i, true); _iS31FL3731.Clear(i); } _iS31FL3731.SetFrame(0); _iS31FL3731.DisplayFrame(0); }
public override void Clear(bool updateDisplay = false) { iS31FL3731.Clear(Frame); }