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

Dependents:   uLCDgaugeTest

uLCD_gauges.h

Committer:
Striker121
Date:
2015-03-13
Revision:
1:5666427710f2
Parent:
0:9101c0ce36a1
Child:
2:38006c26dda5

File content as of revision 1:5666427710f2:

#ifndef ULCD_GAUGES_H
#define ULCD_GAUGES_H
 
#include "uLCD_4DGL.h"
#include "mbed.h"
 
class uLCD_gauges {
public:
    uLCD_gauges(uLCD_4DGL& screen, float min, float max);
    uLCD_gauges(uLCD_4DGL& screen, float min, float max, long memoryAddressHigh, long memoryAddressLow);
    void start();
    void update(float value);
  
private:  
    uLCD_4DGL *uLCD;
    float minVal;
    float maxVal;
    float mapOffset;
    float mapSlope;
    long memHigh;
    long memLow;
};
 
#endif