Basic Example octave addon for LCD
Allows basic manipulation of an LCD as a illustration of using the addon functionality.
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.
Pins - the pins allocated the LCD display.
Constructor to create LCD device
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.
lcd - created LCD object
Free the LCD
Should be called before discarding the LCD
None.
None.
Clear the LCD display and set the cursor position to the home position.
None.
None.
Display text on LCD starting at the current cursor position.
text - text to display on LCD
None.
Set the cursor position to row, col
col - 0 indexed LCD column to position to.
row - 0 indexed LCD row to position to.
None.
Package: arduino