TP7_DS_3_LCD_contrast

Dependencies:   C12832 mbed

Files at this revision

API Documentation at this revision

Comitter:
rtk
Date:
Mon Nov 02 22:36:12 2015 +0000
Commit message:
.;

Changed in this revision

C12832.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832.lib	Mon Nov 02 22:36:12 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/askksa12543/code/C12832/#990d5eec2ef6
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 02 22:36:12 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file