Class C16x9
Represents a mikroBUS 16x9 Click board
Assembly: C16x9.dll
View Source
Declaration
public class C16x9 : IPixelDisplay, IDisplay
Implements:
Meadow.Peripherals.Displays.IPixelDisplay
, Meadow.Peripherals.Displays.IDisplay
Properties
PixelBuffer
The buffer to hold the display data
View Source
Declaration
public IPixelBuffer PixelBuffer { get; protected set; }
ColorMode
Color mode of display
View Source
Declaration
public ColorMode ColorMode { get; }
SupportedColorModes
Color mode of display
View Source
Declaration
public ColorMode SupportedColorModes { get; }
Width
Width of display in pixels
View Source
Declaration
public int Width { get; }
Height
Height of display in pixels
View Source
Declaration
public int Height { get; }
IgnoreOutOfBoundsPixels
Gets/Sets property to ignore boundaries when drawing outside of the LED matrix
View Source
Declaration
public bool IgnoreOutOfBoundsPixels { get; set; }
DisplayOn
Turn the display on or off
View Source
Declaration
public bool DisplayOn { get; set; }
Methods
Clear(bool)
Clear display
View Source
Declaration
public void Clear(bool updateDisplay = false)
Parameters
Type | Name |
---|---|
System.Boolean | updateDisplay |
DrawPixel(int, int, Color)
Turn on an RGB LED with the specified color on (x,y) coordinates
View Source
Declaration
public void DrawPixel(int x, int y, Color color)
Parameters
Type | Name |
---|---|
System.Int32 | x |
System.Int32 | y |
Meadow.Color | color |
DrawPixel(int, int, bool)
Turn on a LED on (x,y) coordinates
View Source
Declaration
public void DrawPixel(int x, int y, bool colored)
Parameters
Type | Name |
---|---|
System.Int32 | x |
System.Int32 | y |
System.Boolean | colored |
InvertPixel(int, int)
Invert the color of the pixel at the given location
View Source
Declaration
public void InvertPixel(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | x location in pixels |
System.Int32 | y | y location in pixels |
DrawBuffer(int, int, IPixelBuffer)
Draw a buffer to the display
View Source
Declaration
public void DrawBuffer(int x, int y, IPixelBuffer displayBuffer)
Parameters
Type | Name |
---|---|
System.Int32 | x |
System.Int32 | y |
Meadow.Peripherals.Displays.IPixelBuffer | displayBuffer |
Fill(Color, bool)
Clear the display.
View Source
Declaration
public void Fill(Color clearColor, bool updateDisplay = false)
Parameters
Type | Name |
---|---|
Meadow.Color | clearColor |
System.Boolean | updateDisplay |
Fill(int, int, int, int, Color)
Clear the display
View Source
Declaration
public void Fill(int x, int y, int width, int height, Color fillColor)
Parameters
Type | Name |
---|---|
System.Int32 | x |
System.Int32 | y |
System.Int32 | width |
System.Int32 | height |
Meadow.Color | fillColor |
Show()
Show changes on the display
View Source
Declaration
public void Show()
Show(int, int, int, int)
Show changes on the display
View Source
Declaration
public void Show(int left, int top, int right, int bottom)
Parameters
Type | Name |
---|---|
System.Int32 | left |
System.Int32 | top |
System.Int32 | right |
System.Int32 | bottom |
Show(byte)
Show changes on the display
View Source
Declaration
public void Show(byte frame)
Parameters
Type | Name |
---|---|
System.Byte | frame |
WriteBuffer(int, int, IPixelBuffer)
Write an external buffer to the display buffer
View Source
Declaration
public void WriteBuffer(int x, int y, IPixelBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | X postion to write buffer in pixels |
System.Int32 | y | Y postion to write buffer in pixels |
Meadow.Peripherals.Displays.IPixelBuffer | buffer | The buffer to write |
Implements
Meadow.Peripherals.Displays.IPixelDisplay
Meadow.Peripherals.Displays.IDisplay