A simple meter using Adafruit 2.8 TFT with touch v2
Dependencies: SPI_STMPE610 UniGraphic mbed vt100
meter Class Reference
meter class A simple analog style meter More...
#include <meter.h>
Public Member Functions | |
| meter (int x, int y, int width, int height, float min, float max) | |
| meter constructor | |
| ~meter (void) | |
| meter destructor | |
| void | drawFrame (void) |
| drawFrame draw meter frame/canvas | |
| void | drawScale (void) |
| drawScale draw measuring mark | |
| void | drawHand (float value) |
| drawHand draw meter hand at value position | |
| void | drawValue (float value) |
| drawValue draw textual value in the lower part of the meter | |
| void | draw (float value) |
| draw draw full set of the meter | |
| void | update (float value) |
| update draw only hand and value text | |
Detailed Description
meter class A simple analog style meter
Definition at line 8 of file meter.h.
Constructor & Destructor Documentation
| meter | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height, | ||
| float | min, | ||
| float | max | ||
| ) |
Member Function Documentation
| void draw | ( | float | value ) |
| void drawHand | ( | float | value ) |
| void drawValue | ( | float | value ) |
Generated on Wed Jul 13 2022 19:37:46 by
1.7.2