Skip to main content

Meadow.Foundation.ICs.IOExpanders.Is31fl3731

Is31fl3731
StatusStatus badge: working
Source codeGitHub
Datasheet(s)GitHub
NuGet packageNuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Is31fl3731

Code Example

Is31fl3731 iS31FL3731;

public override Task Initialize()
{
Resolver.Log.Info("Initialize...");
iS31FL3731 = new Is31fl3731(Device.CreateI2cBus());
iS31FL3731.Initialize();

return base.Initialize();
}

public override Task Run()
{
iS31FL3731.ClearAllFrames();
iS31FL3731.SetFrame(frame: 0);
iS31FL3731.DisplayFrame(frame: 0);

//Turn on all LEDs in frame
for (byte i = 0; i <= 144; i++)
{
iS31FL3731.SetLedPwm(
frame: 0,
ledIndex: i,
brightness: 128);

Thread.Sleep(50);
}

return base.Run();
}

Sample project(s) available on GitHub

Wiring Example

To wire a Is31fl3731 to your Meadow board, connect the following: