Skip to main content

Meadow.Foundation.Displays.Ch1115

Ch1115
StatusStatus badge: working
Source codeGitHub
Datasheet(s)GitHub
NuGet packageNuGet Gallery for Meadow.Foundation.Displays.Ch1115

Code Example

MicroGraphics graphics;

publicoverrideTaskInitialize()
{
Resolver.Log.Info("Initializing...");

var ch1115 =newCh1115
(
spiBus: Device.CreateSpiBus(),
chipSelectPin: Device.Pins.D02,
dcPin: Device.Pins.D01,
resetPin: Device.Pins.D00,
width:128,
height:64
);

graphics =newMicroGraphics(ch1115);
graphics.CurrentFont =newFont8x8();

returnbase.Initialize();
}

publicoverrideTaskRun()
{
graphics.Clear();
graphics.DrawTriangle(10,10,50,50,10,50,false);
graphics.DrawRectangle(20,15,40,20,true);
graphics.DrawText(5,5,"CH1115");
graphics.Show();

returnbase.Run();
}

Sample project(s) available on GitHub

close