Michael Shimniok
/
SFE_SerialGfxLCD
Example program for Sparkfun Serial Graphic LCD library.
main.cpp
- Committer:
- shimniok
- Date:
- 2012-03-28
- Revision:
- 1:ecaa29af5f6d
- Parent:
- 0:046ebfaa15d3
File content as of revision 1:ecaa29af5f6d:
#include "mbed.h" #include "SerialGraphicLCD.h" SerialGraphicLCD lcd(p26, p25); int main() { lcd.baud(115200); while (1) { lcd.clear(); lcd.rect(3, 3, 20, 20); lcd.printf("Hello World!"); lcd.pixel(14, 35, true); lcd.pixel(16, 36, true); lcd.pixel(18, 37, true); lcd.pos(4, 1); lcd.printf("Hi"); lcd.circle(50, 20, 20, true); lcd.posXY(50, 20); lcd.printf("Howdy"); lcd.line(0, 0, 25, 25, true); wait(2); } }