RP6 ROBOT SYSTEM - 4. RP6 CONTROL M256 WIFI Library
void writeStringLCD(char *string)
Like the relevant function for the serial interface, writeStringLCD sends a character
string terminated by zero from the SRAM to the LCD. So you should use this function
only if the text is dynamic and really located in the SRAM and is not plain static text.
In that case, the macro:
writeStringLCD_P(STRING)
is more convenient as the text is read directly from the flash memory without the de-
tour through the RAM (would consume a lot of memory).
void writeStringLengthLCD(char *string, uint8_t length, uint8_t offset)
This function allows to display a text of the specified length on the LCD. The paramet-
ers are identical to those of the same function of the serial interface.
showScreenLCD(LINE1,LINE2)
To make text outputs on an LCD easier, this function allows to write both lines of the
LCD with only one query. The cursor is placed automatically at the right spot and the
contents of the display are erased beforehand.
Example:
showScreenLCD("LCD line 1", "LCD line 2");
void writeIntegerLCD(int16_t number, uint8_t base)
This function is already known from the serial interface to display numbers in the
formats BIN, OCT, DEC or HEX on the LCD.
void writeIntegerLengthLCD(int16_t number, uint8_t base, uint8_t length)
Except for the name, writeIntegerLengthLCD is identical to the well-known function on
the serial interface. See the documentation in the RP6 manual and the comments in
the code of the library for details.
- 31 -