This is a sample program to drive a 128x128 LCD with t6963 controller through SPI by means of an MCP23S17 16-Bit I/O Expander with Serial Interface
Diff: main.cpp
- Revision:
- 1:e98e29ea2d03
- Parent:
- 0:bf72877f77ab
- Child:
- 2:9071445a6895
--- a/main.cpp Sun Dec 05 14:31:49 2010 +0000 +++ b/main.cpp Sun Dec 05 14:38:10 2010 +0000 @@ -1,5 +1,5 @@ #include "mbed.h" -#include "MCP23S17.h" +#include "mcp_lcd.h" #define LCDFONTSEL 0xFF DigitalOut myled(LED1); @@ -98,6 +98,7 @@ { while (s[0]) { + // convert from ascii to t6963 lcd_data(s[0]-32); s++; }