Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SPI_STMPE610 UniGraphic mbed vt100
meter.h@2:204e60dbd73d, 2017-07-21 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Jul 21 01:24:53 2017 +0000
- Revision:
- 2:204e60dbd73d
- Parent:
- 0:d01def9cf41e
- Child:
- 3:bf8761c8eb17
organizing index count for theta (on going)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Rhyme | 0:d01def9cf41e | 1 | #ifndef _METER_H_ |
| Rhyme | 0:d01def9cf41e | 2 | #define _METER_H_ |
| Rhyme | 0:d01def9cf41e | 3 | |
| Rhyme | 0:d01def9cf41e | 4 | class meter { |
| Rhyme | 0:d01def9cf41e | 5 | public: |
| Rhyme | 0:d01def9cf41e | 6 | meter(int x, int y, int width, int height, float min, float max) ; |
| Rhyme | 0:d01def9cf41e | 7 | ~meter(void) ; |
| Rhyme | 0:d01def9cf41e | 8 | void drawFrame(void) ; |
| Rhyme | 0:d01def9cf41e | 9 | void drawScale(void) ; |
| Rhyme | 0:d01def9cf41e | 10 | void drawHand(float value) ; |
| Rhyme | 0:d01def9cf41e | 11 | void drawValue(float value) ; |
| Rhyme | 0:d01def9cf41e | 12 | void draw(void) ; |
| Rhyme | 0:d01def9cf41e | 13 | void draw(float value) ; |
| Rhyme | 0:d01def9cf41e | 14 | void update(float value) ; |
| Rhyme | 0:d01def9cf41e | 15 | |
| Rhyme | 0:d01def9cf41e | 16 | private: |
| Rhyme | 0:d01def9cf41e | 17 | int _x ; |
| Rhyme | 0:d01def9cf41e | 18 | int _y ; |
| Rhyme | 0:d01def9cf41e | 19 | int _w ; |
| Rhyme | 0:d01def9cf41e | 20 | int _h ; |
| Rhyme | 0:d01def9cf41e | 21 | int _center_x ; |
| Rhyme | 0:d01def9cf41e | 22 | int _center_y ; |
| Rhyme | 0:d01def9cf41e | 23 | float _value ; |
| Rhyme | 0:d01def9cf41e | 24 | float _min ; |
| Rhyme | 0:d01def9cf41e | 25 | float _max ; |
| Rhyme | 0:d01def9cf41e | 26 | |
| Rhyme | 0:d01def9cf41e | 27 | } ; |
| Rhyme | 0:d01def9cf41e | 28 | |
| Rhyme | 0:d01def9cf41e | 29 | #endif /* _METER_H_ */ |