Phil Green
/
Nokia_Philips_Controller
Nokia LCD Controller for Philips PCF8833 controller marked "X3"
Diff: main.cpp
- Revision:
- 0:d1a5b2ebfc8a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 01 08:41:43 2009 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" +#include "MobileLCD.h" + +MobileLCD lcd(p5, p6, p7, p8, p9); +DigitalOut led(LED1); + +int main() { + lcd.background(BLUE); + lcd.cls(); + lcd.fill(2, 51, 128, 10, GREEN); + lcd.fill(50, 1, 10, 128, RED); + lcd.locate(0,3); + lcd.printf("Hello World!"); + for (int i=0; i<130; i++) { + lcd.pixel(i, 80 + sin((float)i / 5.0)*10, 0x000000); + } +}