Raspberry Pi LCD program
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Command line arguments
SPI options: -D <device> SPI device to use. default: /dev/spidev0.0 -s <speed> speed to use on the SPI bus default 0.5MHz. -d <delay> delay between bytes. default: 15 us.
LCD options: -a <addr> address of display, defaults to 0x82 -p <c>,<l> Jump to line <l> and character <c> -t <text> print text -T <c>,<l> <text> Print tekst starting at line <l> character <c>. -b < b > Adjust backlight level -c <c> Adjust contrast -C clearscreen -f <file> display text from file (not implemented yet).
general bw SPI options: -r <reg> -v <val> set register to value. Requires -r.
Example commands
Print current date on line 0:
LCD -p 0,0 -t `date +%m/%d/%Y`
Print the text "Hello World" on line 1, character 2:
LCD -T 2,1 "Hello World"
Print the contents of "textfile":
LCD -f textfile
Write two different strings to two daisy-chained displays:
LCD -a 82 -T 0,0 display0 LCD -a 84 -T 0,0 display1