roCharDisplay
9 min
The roCharDisplay object lets you write to a character display as well as set and get its properties.
Object Creation:
CreateObject("roCharDisplay")if CharDisplay
Show(row As Integer, col As Integer, txt As String) As Void
Displays text at the prescribed position. This has the following parameters:
- row int: The row in which to put the text
- col int: The column in which to put the text
- txt string: The text as a string
Clear() as void
Clears the display
SetPosition (row As Integer, col As Integer) As Void
Positions the cursor. This has the following parameters:
- row int: The row in which to put the cursor
- col int: The column in which to put the cursor
SetCursor(cursor As Integer) As Void
Sets the cursor style. This has the following parameter:
- cursor int: The preferred cursor style; 0 is off; 1 is blink; 2 is underline; 3 is both
SetContrast(contrast As Integer) As Void
Set the display contrast. This has the following parameter:
- contrast int: A value from 0 to 100
GetContrast() As Integer
Gets the display contrast
SetBrightness(brightness) As Integer
Set the display brightness. This has the following parameter:
- brightness int: A value from 0 to 100
GetBrightness() As Integer
Gets the display brightness
GetColumns() As Integer
Returns the number of columns. This is useful for writing code that loops over the available rows and columns.
GetRows() As Integer
Returns the number of rows. This is useful for writing code that loops over the available rows and columns.