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/
Diff: DigitLed.h
- Revision:
- 1:a74e42cf52b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DigitLed.h Sun Apr 05 13:54:48 2015 +0000 @@ -0,0 +1,53 @@ +#ifndef DIGIT_LED_H +#define DIGIT_LED_H + +#include "Screen.h" + +class DigitLed:public Widget +{ +public: + /** Construct a Digit Led + * + * @param mScreen the pointer screen + * @params _x up left + * @params _y up left + * @params _ptVisible + */ + DigitLed(Screen* mScreen,UINT16 _x,UINT16 _y,bool _ptVisible); + // + virtual void draw(void); + // + virtual ~DigitLed(void); + // + void setInvisible(bool _state); + // + void setValue(char _value); + // + void setColorBkg(Color _colorBkg); + // + void setColorSeg(Color _colorSeg); + // + void setPtVisible(bool _state); + +protected: + char myValue; + Color myColorBkg; + Color myColorSeg; + UINT16 myIncX; + UINT16 myIncY; + bool isPtVisible; + // + void draw_seg_a(PicasoSerial* ps); + void draw_seg_b(PicasoSerial* ps); + + void draw_seg_c(PicasoSerial* ps); + + void draw_seg_d(PicasoSerial* ps); + void draw_seg_e(PicasoSerial* ps); + void draw_seg_f(PicasoSerial* ps); + + void draw_seg_g(PicasoSerial* ps); + void draw_seg_pt(PicasoSerial* ps); +}; + +#endif \ No newline at end of file