SIL Breakout Header SPI to 8-bit Parallel LCD Interface
Contents
Circuit Schematic and Build
|
|
|
|
Working with Various LCD Displays ...
Demo. Software "Self-help"
pi@raspibplus16Gb ~/i2c_chips-0.0 $ ./src/lcd_spi8b_demo lcd_spi8b_demo.c Version 0.01 {Exp}, [02/08/2014], (c) F_Trevor_Gowen <--| Package i2c_chips_0.0 |--> Usage lcd_spi8b_demo [Options] Options: -a arg_filename[.arg], -dmsg 's' {Display a MeSsaGe 'like_this_one'... - implies -W}, +S {... and Scroll right}, -E {Echo command-line arguments}, -0802 {LCD display type 0802}, -1602 {LCD display type 1602 - default}, -2004 {LCD display type 2004}, -CH {Clear display & return Home - implies -W}, -F8T {Func set init 8-bit Test*}, -IG {Initialise used gpio's & Gpio readall}, -ST {Strobe Test*}, -WDT {Write Data Test*}, -WLT {Write Line info. Test - implies -W}, -WMT {Write Message Test - implies -W}, -WRT {Write Register Test*}, {*NB: LED Test board req'd with -S}, -Q {Quiet - default}, -S {use System call methods** - default}, -T {using LED Test board}, -V {Verbose}, -W {use Wiring pi spi methods}, -X {eXecute demonstration}. ** NB: Uses "sudo echo ..." to the SPI device!
|
|
|
|
|
|
|
|
|
|
|
|
Now Working with Various GLCD Displays ...
... via this Serial-to-Parallel GLCD Adapter
|
|
|
|
pi@raspiP3BStretch16Gb:~/i2c_spi_chips-0.0 $ src/glcd_spi8bA_demo glcd_spi8bA_demo.c Version 0.00 {Exp}, [11/09/2017], (c) F_Trevor_Gowen <--| Package i2c_spi_chips_0.0 |--> Usage glcd_spi8bA_demo [Options] Options: -a arg_filename[.arg], -xbm xbm_filename[.xbm] (for 128x64 graphic), -xpm xpm_filename[.xpm] (for 16x16 CGRAM char.), +XBM {XBM dump of pixel store}, +XPM {XPM dump of pixel store}, -E {Echo command-line arguments}, -F0816 {use half-character, 8x16 Font (default)}, -F1616 {use 16x16 Font#}, -FG1616 {use user-defined Graphic 16x16 Font#}, -FI1616 {use chinese Icon 16x16 Font#}, {# for -WDT option only}, -glcd# n {Use GLCD model name #n (0 < n < 4)}, +UCGn {Use CGram address 000n (n=0,2,4 or 6) ...}, {... for xpm file data}, -F8BT {Func set init 8-bit, Basic instruction set Test*}, -IG {Initialise used gpio's & Gpio readall}, -ST {Strobe Test*}, -WDT {Write Data Test*}, -WRT {Write Register Test*}, {*NB: LED Test board req'd with -S}, -CH {Clear display & return Home - implies -W}, -F8XT {Func set init 8-bit, eXtended instr. set Test - implies -W}, -GDST {Graphics Display Switch Test - implies -W}, -Rn {Reverse line n (n=1|2) - implies -W}, -WLT {Write Line info. Test - implies -W & -F0816}, -WMT {Write Message Test - implies -W & -F0816}, -Q {Quiet - default}, -S {use System call methods - default}, -T {using LED Test board}, -V {Verbose}, -W {use Wiring pi spi methods}, -X {eXecute demonstration}.
pi@raspiP3BStretch16Gb:~/i2c_spi_chips-0.0 $ src/glcd_spi8bA_demo -IG glcd_spi8bA_demo.c Version 0.00 {Exp}, [11/09/2017], (c) F_Trevor_Gowen <--| Package i2c_spi_chips_0.0 |--> <glcd_spi8bA_demo.arg> fopen: No such file or directory glcd_spi8bA_demo.arg not found glcd spi2p_8bit status: NC 16 NL 4 DDRAM[] 80 90 80 90 RS GPIO 22 E GPIO 27 BL GPIO -1 EHMIN 16 uS ELMIN 72 uS ELMAX 1672 uS WAIT 72 uS gc74hc595 chip status: SPI_DEV /dev/spidev0.0 GOE GPIO 17 SCL GPIO 18 NAME ST7920 qc12864b pixel store status: First row bytes ... 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff Last row bytes ... 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 0xff 0x00 gpio -g mode 17 out gpio -g mode 18 out gpio -g mode 22 out gpio -g mode 27 out gpio -g write 17 1 gpio -g write 18 1 gpio -g write 22 0 gpio -g write 27 0 gpio readall