Demo to control 4 LEDs
Dependencies: BSP_DISCO_F469NI mbed
Diff: Widgets/Textbox.h
- Revision:
- 1:a6d179a9ffbb
- Parent:
- 0:e06404fdff2f
--- a/Widgets/Textbox.h Wed Oct 11 22:26:45 2017 +0000 +++ b/Widgets/Textbox.h Tue Oct 31 14:39:54 2017 +0000 @@ -26,15 +26,16 @@ static const uint16_t DIMX = 0; static const uint16_t DIMY = 0; - Textbox(uint16_t x, uint16_t y, color_t clr, char *s = "", mode_t m = LEFT_MODE) : - Widget(x, y, DIMX, DIMY, clr), str(s), mode(m) {draw(backColor);} + Textbox(const uint16_t x, const uint16_t y, const color_t clr, + char *s = "", text_mode_t tm = LEFT_MODE) : + Widget(x, y, DIMX, DIMY, clr), str(s), mode(tm) {draw(backColor);} virtual void draw(color_t clr); virtual uint16_t update() {return 0;}; private: char * str; - mode_t mode; + text_mode_t mode; }; #endif \ No newline at end of file