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

Dependents:   uLCDgaugeTest

Committer:
Striker121
Date:
Fri Mar 13 14:05:32 2015 +0000
Revision:
1:5666427710f2
Parent:
0:9101c0ce36a1
Child:
2:38006c26dda5
Added command for custom gauge addresses

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Striker121 0:9101c0ce36a1 1 #ifndef ULCD_GAUGES_H
Striker121 0:9101c0ce36a1 2 #define ULCD_GAUGES_H
Striker121 0:9101c0ce36a1 3
Striker121 0:9101c0ce36a1 4 #include "uLCD_4DGL.h"
Striker121 0:9101c0ce36a1 5 #include "mbed.h"
Striker121 0:9101c0ce36a1 6
Striker121 0:9101c0ce36a1 7 class uLCD_gauges {
Striker121 0:9101c0ce36a1 8 public:
Striker121 0:9101c0ce36a1 9 uLCD_gauges(uLCD_4DGL& screen, float min, float max);
Striker121 1:5666427710f2 10 uLCD_gauges(uLCD_4DGL& screen, float min, float max, long memoryAddressHigh, long memoryAddressLow);
Striker121 0:9101c0ce36a1 11 void start();
Striker121 0:9101c0ce36a1 12 void update(float value);
Striker121 0:9101c0ce36a1 13
Striker121 0:9101c0ce36a1 14 private:
Striker121 0:9101c0ce36a1 15 uLCD_4DGL *uLCD;
Striker121 0:9101c0ce36a1 16 float minVal;
Striker121 0:9101c0ce36a1 17 float maxVal;
Striker121 0:9101c0ce36a1 18 float mapOffset;
Striker121 0:9101c0ce36a1 19 float mapSlope;
Striker121 1:5666427710f2 20 long memHigh;
Striker121 1:5666427710f2 21 long memLow;
Striker121 0:9101c0ce36a1 22 };
Striker121 0:9101c0ce36a1 23
Striker121 0:9101c0ce36a1 24 #endif