Allows for a 90 frame animated gauge to be display on the uLCD

Dependents:   uLCDgaugeTest

Revision:
1:5666427710f2
Parent:
0:9101c0ce36a1
Child:
2:38006c26dda5
--- a/uLCD_gauges.cpp	Thu Mar 12 18:19:26 2015 +0000
+++ b/uLCD_gauges.cpp	Fri Mar 13 14:05:32 2015 +0000
@@ -7,9 +7,21 @@
     maxVal = max;
     mapOffset = 1;
     mapSlope = (90 - 1) / (maxVal - minVal);
+    memHigh = 0;
+    memLow = 0;
 }
  
+uLCD_gauges::uLCD_gauges(uLCD_4DGL& screen, float min, float max, long memoryAddressHigh, long memoryAddressLow){
+    uLCD = &screen;
+    minVal = min;
+    maxVal = max;
+    mapOffset = 1;
+    mapSlope = (90 - 1) / (maxVal - minVal);
+    memHigh = memoryAddressHigh;
+    memLow = memoryAddressLow;
+}
 void uLCD_gauges::start() {
+    uLCD->baudrate(3000000);
     uLCD->cls();
     uLCD->media_init();
     uLCD->set_sector_address(0,0);