Example of library TextLCD_ST7565SPI: Text console library for ST7565 graphics LCD controller over SPI interface.

Dependencies:   TextLCD_ST7565SPI mbed

Revision:
0:895b272c0de6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 02 23:12:38 2015 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "TextLCD_ST7565SPI.h"
+
+TextLCD_ST7565SPI lcd(/*MOSI*/ p5, /*SCK*/ p7, /*CS*/ p8,
+                      /*RS*/ p11, /*RST*/ p12, /*Columns*/ 21, /*Rows*/ 8);
+
+int main(void) {
+    // Initialize LCD
+    lcd.init(/*V0*/ 3, /*Contrast*/ 48, /*Bias*/ TextLCD_ST7565SPI::Bias1_9);
+    
+    lcd.locate(0, 0);
+    lcd.printf("Hello, world");
+    
+    uint32_t count = 0;
+    lcd.locate(0, 1);
+    while (1) {
+        lcd.printf("\r\n%d", count++);
+        wait(1);
+    }
+}