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

Dependents:   uLCDgaugeTest

Committer:
Striker121
Date:
Fri Mar 13 15:20:33 2015 +0000
Revision:
2:38006c26dda5
Parent:
1:5666427710f2
Child:
4:069b01d563a3
Added extra inputs needed for custom gauges

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Striker121 2:38006c26dda5 1 /**
Striker121 2:38006c26dda5 2 * @file uLCD_gauges.h
Striker121 2:38006c26dda5 3 * @brief This header file lists the functions needed to control gauge display on the uLCD
Striker121 2:38006c26dda5 4 *
Striker121 2:38006c26dda5 5 * @author Matthew Arceri and Harsha Nori
Striker121 2:38006c26dda5 6 *
Striker121 2:38006c26dda5 7 * @date 3/13/2015
Striker121 2:38006c26dda5 8 */
Striker121 0:9101c0ce36a1 9 #ifndef ULCD_GAUGES_H
Striker121 0:9101c0ce36a1 10 #define ULCD_GAUGES_H
Striker121 0:9101c0ce36a1 11
Striker121 0:9101c0ce36a1 12 #include "uLCD_4DGL.h"
Striker121 0:9101c0ce36a1 13 #include "mbed.h"
Striker121 0:9101c0ce36a1 14
Striker121 0:9101c0ce36a1 15 class uLCD_gauges {
Striker121 0:9101c0ce36a1 16 public:
Striker121 0:9101c0ce36a1 17 uLCD_gauges(uLCD_4DGL& screen, float min, float max);
Striker121 2:38006c26dda5 18 uLCD_gauges(uLCD_4DGL& screen, float min, float max, int lowF, int highF, long memoryAddressHigh, long memoryAddressLow);
Striker121 0:9101c0ce36a1 19 void start();
Striker121 0:9101c0ce36a1 20 void update(float value);
Striker121 0:9101c0ce36a1 21
Striker121 0:9101c0ce36a1 22 private:
Striker121 0:9101c0ce36a1 23 uLCD_4DGL *uLCD;
Striker121 0:9101c0ce36a1 24 float minVal;
Striker121 0:9101c0ce36a1 25 float maxVal;
Striker121 0:9101c0ce36a1 26 float mapOffset;
Striker121 0:9101c0ce36a1 27 float mapSlope;
Striker121 2:38006c26dda5 28 float highFrame;
Striker121 1:5666427710f2 29 long memHigh;
Striker121 1:5666427710f2 30 long memLow;
Striker121 0:9101c0ce36a1 31 };
Striker121 0:9101c0ce36a1 32
Striker121 0:9101c0ce36a1 33 #endif