Meadow.Foundation.mikroBUS.Displays.C8800Retro
| C8800Retro | |
|---|---|
| Status | |
| Source code | GitHub |
| NuGet package |
Code Example
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);
}
Sample project(s) available on GitHub
API Reference
Class C8800Retro
Represents a mikroBUS Altair 8800 Retro click board
Assembly: C8800Retro.dll
View Source
Declaration
public class C8800Retro : As1115, IPixelDisplay, IDisplay, II2cPeripheral, IDisposable
Inheritance: System.Object -> Meadow.Foundation.ICs.IOExpanders.As1115
Implements:
Meadow.Peripherals.Displays.IPixelDisplay, Meadow.Peripherals.Displays.IDisplay, Meadow.Hardware.II2cPeripheral, System.IDisposable
Methods
GetButton(ButtonColumn, ButtonRow)
Get the button for a given row and column
View Source
Declaration
public IButton GetButton(C8800Retro.ButtonColumn column, C8800Retro.ButtonRow row)
Returns
Meadow.Peripherals.Sensors.Buttons.IButton: The IButton object
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Foundation.mikroBUS.Displays.C8800Retro.ButtonColumn | column | The column of the button (1-4) |
| Meadow.Foundation.mikroBUS.Displays.C8800Retro.ButtonRow | row | The row of the button (A-D) |
Implements
Meadow.Peripherals.Displays.IPixelDisplayMeadow.Peripherals.Displays.IDisplayMeadow.Hardware.II2cPeripheralSystem.IDisposable