Kevin Sullivan / Mbed 2 deprecated lab2_2

Dependencies:   mbed C12832

Revision:
0:376219f61e79
Child:
1:44729c5f024a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jul 18 10:44:27 2020 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "C12832.h"
+Serial pc(USBTX, USBRX); // tx, rx
+PwmOut led1(LED1);
+AnalogIn pot1(p19);
+C12832 lcd(p5,p7,p6,p8,p11);
+int main()
+{
+    while(1) {
+        float t = pot1;
+        led1 = pot1;
+        wait(0.01);
+        lcd.locate(0,0); //brings the cursor on the LCD back to the top left corner
+        lcd.printf("value = %.2f\n",t); // displays the value on the LCD
+    }
+}