LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Revision:
3:688b62ff6474
Child:
5:5b1a8ad6c187
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LevelMeter.cpp	Sun Apr 26 16:29:53 2015 +0000
@@ -0,0 +1,25 @@
+#include "LevelMeter.h"
+
+void LevelMeter::display(void){
+    draw_circles(0,0);
+}
+
+void LevelMeter::update(char c){
+    if(c == 'y')
+        this->setSelectedScreen(back);
+}
+
+void LevelMeter::draw_circles(double rX, double rY){
+    
+    int X1 = 95, Y1 = 35, X2 = 30, Y2 = 35; //need to calculate these
+    
+    //draw the circles
+    st7565->fillcircle(X1, Y1, RADIUS_lvl, 20);
+    st7565->drawcircle(X2, Y2, RADIUS_lvl, 1);
+    
+    //draw cross
+    st7565->drawline(X0 - 2, Y0, X0 + 2, Y0, 20);
+    st7565->drawline(X0, Y0 - 2, X0, Y0 + 2, 20);
+    
+    st7565->display();
+}
\ No newline at end of file