TP7_DS_3_LCD_contrast

Dependencies:   C12832 mbed

Revision:
0:a47cccea14ff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 02 22:36:12 2015 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "C12832.h"
+ 
+C12832 lcd(D11, D13, D12, D7, D10);
+ 
+AnalogIn pot1 (A0);
+AnalogIn pot2 (A1);
+ 
+int main()
+{
+    
+    while(1) {
+        lcd.cls();
+        lcd.locate(0,8);
+        lcd.printf("Pot 1 = %.2f", (float)pot1);
+        wait(0.1);
+        lcd.set_contrast(pot1 * 64);
+    }
+}
\ No newline at end of file