|
VEX EDR Python API
|
Config LCD Display device for Vex with 2 line display and 3 buttons. More...
Public Member Functions | |
| def | __init__ (self, scroll_enabled=False) |
| def | is_scroll_enabled (self) |
| True if scroll history buffer is enabled (i.e. More... | |
| def | write_top (self, text) |
| Write text to the top line of the LCD. More... | |
| def | write_bottom (self, text) |
| Write text to the bottom line of the LCD. More... | |
| def | write (self, text) |
| Write scrollable text to the LCD. More... | |
| def | scroll_move (self, num_lines) |
| Move screen by given number of lines (negative: up, positive: down). More... | |
| def | scroll_clear (self) |
| Clear the scroll history. More... | |
| def | button_left (self) |
| Get whether the LEFT button is pressed. More... | |
| def | button_mid (self) |
| Get whether the MID button is pressed. More... | |
| def | button_right (self) |
| Get whether the RIGHT button is pressed. More... | |
Config LCD Display device for Vex with 2 line display and 3 buttons.
| scroll_enabled | if True, use in scroll history mode, otherwise buttons are available. Default False. |
| def vex.LcdDisplay.__init__ | ( | self, | |
scroll_enabled = False |
|||
| ) |
| def vex.LcdDisplay.is_scroll_enabled | ( | self | ) |
True if scroll history buffer is enabled (i.e.
buttons disabled)
| def vex.LcdDisplay.write_top | ( | self, | |
| text | |||
| ) |
Write text to the top line of the LCD.
| text | text to write |
| def vex.LcdDisplay.write_bottom | ( | self, | |
| text | |||
| ) |
Write text to the bottom line of the LCD.
| text | text to write |
| def vex.LcdDisplay.write | ( | self, | |
| text | |||
| ) |
Write scrollable text to the LCD.
| text | text to write |
| def vex.LcdDisplay.scroll_move | ( | self, | |
| num_lines | |||
| ) |
Move screen by given number of lines (negative: up, positive: down).
| num_lines | number of lines to move (negative: up, positive: down). |
| def vex.LcdDisplay.scroll_clear | ( | self | ) |
Clear the scroll history.
| def vex.LcdDisplay.button_left | ( | self | ) |
Get whether the LEFT button is pressed.
| def vex.LcdDisplay.button_mid | ( | self | ) |
Get whether the MID button is pressed.
| def vex.LcdDisplay.button_right | ( | self | ) |
Get whether the RIGHT button is pressed.
1.8.15