Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/
Digit3Led.h@1:a74e42cf52b2, 2015-04-05 (annotated)
- Committer:
- adelino
- Date:
- Sun Apr 05 13:54:48 2015 +0000
- Revision:
- 1:a74e42cf52b2
PicasoLib version 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adelino | 1:a74e42cf52b2 | 1 | #ifndef DIGIT_3_LED_H |
adelino | 1:a74e42cf52b2 | 2 | #define DIGIT_3_LED_H |
adelino | 1:a74e42cf52b2 | 3 | |
adelino | 1:a74e42cf52b2 | 4 | #include "Screen.h" |
adelino | 1:a74e42cf52b2 | 5 | #include "DigitLed.h" |
adelino | 1:a74e42cf52b2 | 6 | |
adelino | 1:a74e42cf52b2 | 7 | class Digit3Led:public Widget |
adelino | 1:a74e42cf52b2 | 8 | { |
adelino | 1:a74e42cf52b2 | 9 | public: |
adelino | 1:a74e42cf52b2 | 10 | /** Construct a 3 Digit Led [000] |
adelino | 1:a74e42cf52b2 | 11 | * |
adelino | 1:a74e42cf52b2 | 12 | * @param mScreen the pointer screen |
adelino | 1:a74e42cf52b2 | 13 | * @params _x up left |
adelino | 1:a74e42cf52b2 | 14 | * @params _y up left |
adelino | 1:a74e42cf52b2 | 15 | * @params _resolution 1[000],10[00.0],100[0.00] |
adelino | 1:a74e42cf52b2 | 16 | */ |
adelino | 1:a74e42cf52b2 | 17 | Digit3Led(Screen* mScreen,UINT16 _x,UINT16 _y,UINT8 _resolution); |
adelino | 1:a74e42cf52b2 | 18 | // |
adelino | 1:a74e42cf52b2 | 19 | virtual void draw(void); |
adelino | 1:a74e42cf52b2 | 20 | // |
adelino | 1:a74e42cf52b2 | 21 | virtual ~Digit3Led(void); |
adelino | 1:a74e42cf52b2 | 22 | // |
adelino | 1:a74e42cf52b2 | 23 | void setInvisible(bool _state); |
adelino | 1:a74e42cf52b2 | 24 | // |
adelino | 1:a74e42cf52b2 | 25 | void setValue(float _value); |
adelino | 1:a74e42cf52b2 | 26 | // |
adelino | 1:a74e42cf52b2 | 27 | void setColorBkg(Color _colorBkg); |
adelino | 1:a74e42cf52b2 | 28 | // |
adelino | 1:a74e42cf52b2 | 29 | void setColorSeg(Color _colorSeg); |
adelino | 1:a74e42cf52b2 | 30 | |
adelino | 1:a74e42cf52b2 | 31 | protected: |
adelino | 1:a74e42cf52b2 | 32 | Color myColorBkg; |
adelino | 1:a74e42cf52b2 | 33 | Color myColorSeg; |
adelino | 1:a74e42cf52b2 | 34 | float myValue; |
adelino | 1:a74e42cf52b2 | 35 | UINT8 myResolution; |
adelino | 1:a74e42cf52b2 | 36 | |
adelino | 1:a74e42cf52b2 | 37 | DigitLed* myDigitLedCentaine; |
adelino | 1:a74e42cf52b2 | 38 | DigitLed* myDigitLedDizaine; |
adelino | 1:a74e42cf52b2 | 39 | DigitLed* myDigitLedUnite; |
adelino | 1:a74e42cf52b2 | 40 | |
adelino | 1:a74e42cf52b2 | 41 | }; |
adelino | 1:a74e42cf52b2 | 42 | |
adelino | 1:a74e42cf52b2 | 43 | #endif |