Code for Nokia LCD (text ) based on Epson controller. This is on the new Sparkfun board with the two switches.sx

Dependencies:   mbed

Revision:
0:d6d054c554ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 25 23:02:44 2010 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "Nokia_Epson.h"
+
+Nokia_Epson lcd(p5, p6, p7, p8, p9);
+DigitalOut led1(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);
+    led1=1;
+    lcd.printf("Hello World!");
+    for (int i=0; i<130; i++) {
+        lcd.pixel(i, 80 + sin((float)i / 5.0)*10, 0x000000);
+    }
+}
+