|
Treehopper C# API
|
Seeed Studio Grove I2c LCD with RGB backlight More...
Public Types | |
| enum | BitMode { FourBit = 0x00, EightBit = 0x10 } |
| Whether to use 4 or 8 bits for transactions More... | |
| enum | BlinkState { BlinkOff = 0x00, BlinkOn = 0x01 } |
| Whether the cursor should blink More... | |
| enum | Command { ClearDisplay = 0x01, ReturnHome = 0x02, EntryModeSet = 0x04, DisplayControl = 0x08, CursorShift = 0x10, FunctionSet = 0x20, SetCgramAddr = 0x40, SetDdramAddr = 0x80 } |
| An enumeration of commands the display supports More... | |
| enum | CursorState { CursorOff = 0x00, CursorOn = 0x02 } |
| The cursor display state More... | |
| enum | DisplayState { DisplayOff = 0x00, DisplayOn = 0x04 } |
| The display state More... | |
| enum | FontMode { Font_5x8 = 0x00, Font_5x10 = 0x04 } |
| The font mode to use More... | |
| enum | LinesMode { OneLine = 0x00, TwoOrMoreLines = 0x08 } |
| Whether the display is single or multi-line More... | |
Public Member Functions | |
| GroveI2cLcd (I2C i2c) | |
| Task | SetBacklight (Color color) |
| Task | SetBacklight (int red, int green, int blue) |
| Task | SetCursorPosition (int left, int top) |
| Set left/right cursor position More... | |
| Task | WriteLine (dynamic value) |
| Write a line of text, advancing the cursor to the next line More... | |
| async Task | Write (dynamic value) |
| Write text More... | |
| Task | Clear () |
| Clear the display and reset the cursor to (0,0) More... | |
Protected Member Functions | |
| override async Task | clear () |
| Clear the display More... | |
| override Task | updateCursorPosition () |
| Update the cursor position More... | |
| override Task | write (dynamic value) |
| Write data to the display at the current cursor position More... | |
Properties | |
| bool | Backlight [get, set] |
| Enable or disable the backlight More... | |
| bool | Display [get, set] |
| Enable or disable the display More... | |
| bool | Cursor [get, set] |
| Enable or disable the cursor More... | |
| bool | Blink [get, set] |
| Enable or disable cursor blinking More... | |
| Collection< string > | History = new Collection<string>() [get] |
| History of previously-written lines from the display More... | |
| Collection< string > | Lines = new Collection<string>() [get] |
| Current lines of the display More... | |
| int | Columns [get] |
| Number of columns of the display More... | |
| int | Rows [get] |
| Number of rows of the display More... | |
| int | CursorLeft [get, set] |
| Cursor left position More... | |
| int | CursorTop [get, set] |
| Cursor top position More... | |
Seeed Studio Grove I2c LCD with RGB backlight
|
stronginherited |
|
stronginherited |
|
stronginherited |
An enumeration of commands the display supports
|
stronginherited |
|
stronginherited |
|
stronginherited |
|
stronginherited |
| GroveI2cLcd | ( | I2C | i2c | ) |
| Task SetBacklight | ( | Color | color | ) |
| Task SetBacklight | ( | int | red, |
| int | green, | ||
| int | blue | ||
| ) |
|
protectedvirtualinherited |
Clear the display
Implements CharacterDisplay.
|
protectedvirtualinherited |
Update the cursor position
Implements CharacterDisplay.
|
protectedvirtualinherited |
Write data to the display at the current cursor position
| value | The data to write |
Implements CharacterDisplay.
|
inherited |
Set left/right cursor position
| left | The left position |
| top | The top position |
Implements ICharacterDisplay.
|
inherited |
Write a line of text, advancing the cursor to the next line
| value | the text to write |
Implements ICharacterDisplay.
|
inherited |
Write text
| value | the text to write |
Implements ICharacterDisplay.
|
inherited |
Clear the display and reset the cursor to (0,0)
Implements ICharacterDisplay.
|
getsetinherited |
Enable or disable the backlight
|
getsetinherited |
Enable or disable the display
|
getsetinherited |
Enable or disable the cursor
|
getsetinherited |
Enable or disable cursor blinking
|
getinherited |
History of previously-written lines from the display
|
getinherited |
Current lines of the display
|
getinherited |
Number of columns of the display
|
getinherited |
Number of rows of the display
|
getsetinherited |
Cursor left position
|
getsetinherited |
Cursor top position