Arduino Toolkit - arduinoioaddons.ExampleLCD.LCD
- : arduinoioaddons.LCDAddon.LCD
Basic Example octave addon for LCD
Allows basic manipulation of an LCD as a illustration of using the addon functionality.
Example
Assuming the arduino has been programmed with the lcd addon:
a = arduino(); lcd = addon(a, "examplelcd/lcd", "d8", "d9", "d4", "d5", "d6", "d7") clearLCD(lcd); printLCD(lcd, "Hello"); # go to next line gotoLCD(lcd, 0, 1); printLCD(lcd, "World");
See also: addon.
Properties
Pins - the pins allocated the LCD display.
Methods
- :
lcd =
LCD(arObj,rs, enable, d0, d1, d2, d3)
Constructor to create LCD device
Inputs
arObj - the arduino parent object
rs - the pin to use for the rs line.
enable - the pin to use for the enable line.
d0 - the pin to use for the d0 line.
d1 - the pin to use for the d1 line.
d2 - the pin to use for the d2 line.
d3 - the pin to use for the d3 line.
Outputs
lcd - created LCD object
- : clearLCD()
Clear the LCD display and set the cursor position to the home position.
Inputs
None.
Outputs
None.
- : printLCD(text)
Display text on LCD starting at the current cursor position.
Inputs
text - text to display on LCD
Outputs
None.
- : gotoLCD(col,
row)
Set the cursor position to row, col
Inputs
col - 0 indexed LCD column to position to.
row - 0 indexed LCD row to position to.
Outputs
None.