Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

Revision:
5:63d34be8ebf6
Parent:
3:d30ae8ff30bf
--- a/LCDControl.cpp	Fri Oct 16 19:33:25 2015 +0000
+++ b/LCDControl.cpp	Fri Oct 16 19:34:35 2015 +0000
@@ -1,6 +1,25 @@
 //import LCD stuff
+#include "mbed.h"
+#include "uLCD_4DGL.h"
 
+uLCD_4DGL uLCD(p9,p10,p8); // serial tx, serial rx, reset pin;
 
 class LCDControl{
+    int strength;
+    bool mode;
+    public:
+    void update(int, bool);
+    void printStrength(int);
+    };
     
-};
\ No newline at end of file
+    void LCDControl::update(int x, bool y) { //do update stuff on LCD
+        strength = x;
+        mode = y;
+        printStrength(strength);
+    }
+    
+    void LCDControl::printStrength(int x) {
+        uLCD.cls();
+        uLCD.printf("Signal Strenght: %d", x);
+    }
+    
\ No newline at end of file