C8800Retro altair;
MicroGraphics graphics;
public override Task Initialize()
{
Console.WriteLine("Initializing ...");
altair = new C8800Retro(Device.CreateI2cBus(), Device.Pins.D03);
var button1B = altair.GetButton(C8800Retro.ButtonColumn._1, C8800Retro.ButtonRow.B);
button1B.Clicked += Button1B_Clicked;
graphics = new MicroGraphics(altair)
{
CurrentFont = new Font4x8(),
};
return base.Initialize();
}
private void Button1B_Clicked(object sender, EventArgs e)
{
Console.WriteLine("Button 1B clicked");
}
public override async Task Run()
{
altair.EnableBlink(true, true);
graphics.Clear();
graphics.DrawText(0, 0, "MF", Color.White);
graphics.Show();
await Task.Delay(6000);
altair.EnableBlink(false);
}