Allows for a 90 frame animated gauge to be display on the uLCD
Diff: uLCD_gauges.h
- Revision:
- 0:9101c0ce36a1
- Child:
- 1:5666427710f2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uLCD_gauges.h Thu Mar 12 18:19:26 2015 +0000 @@ -0,0 +1,21 @@ +#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); + void start(); + void update(float value); + +private: + uLCD_4DGL *uLCD; + float minVal; + float maxVal; + float mapOffset; + float mapSlope; +}; + +#endif