Class C16x9
Represents a mikroBUS 16x9 Click board
Assembly: C16x9.dll
View Source
public class C16x9 : IGraphicsDisplay
Implements:
Meadow.Foundation.Graphics.IGraphicsDisplay
Properties
PixelBuffer
The buffer to hold the display data
View Source
public IPixelBuffer PixelBuffer { get; protected set; }
ColorMode
Color mode of display
View Source
public ColorMode ColorMode { get; }
SupportedColorModes
Color mode of display
View Source
public ColorMode SupportedColorModes { get; }
Width
Width of display in pixels
View Source
public int Width { get; }
Height
Height of display in pixels
View Source
public int Height { get; }
IgnoreOutOfBoundsPixels
Gets/Sets property to ignore boundaries when drawing outside of the LED matrix
View Source
public bool IgnoreOutOfBoundsPixels { get; set; }
DisplayOn
Turn the display on or off
View Source
public bool DisplayOn { get; set; }
Methods
Clear(bool)
Clear display
View Source
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
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
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
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
public void DrawBuffer(int x, int y, IPixelBuffer displayBuffer)
Parameters
Type | Name |
---|---|
System.Int32 | x |
System.Int32 | y |
Meadow.Foundation.Graphics.Buffers.IPixelBuffer | displayBuffer |
Fill(Color, bool)
Clear the display.
View Source
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
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
public void Show()
Show(int, int, int, int)
Show changes on the display
View Source
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
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
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.Foundation.Graphics.Buffers.IPixelBuffer | buffer | The buffer to write |
Implements
Meadow.Foundation.Graphics.IGraphicsDisplay