GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, ResetButton, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup, NumericUpDown
Dependencies: Array_Matrix TS_DISCO_F746NG LCD_DISCO_F746NG BSP_DISCO_F746NG
Diff: BlinkLabel.hpp
- Revision:
- 22:fa0181712d9c
- Parent:
- 6:b8f197b0012c
- Child:
- 27:115219bcd9f5
diff -r 5abb486c68e0 -r fa0181712d9c BlinkLabel.hpp --- a/BlinkLabel.hpp Wed Aug 17 06:12:49 2016 +0000 +++ b/BlinkLabel.hpp Wed Aug 17 06:17:30 2016 +0000 @@ -2,13 +2,14 @@ // BlinkLabel class -- derived class of Label class // For displaying error message // -// 2016/04/07, Copyright (c) 2016 MIKAMI, Naoki +// 2016/08/16, Copyright (c) 2016 MIKAMI, Naoki //----------------------------------------------------------- #ifndef F746_BLINK_LABEL_HPP #define F746_BLINK_LABEL_HPP #include "Label.hpp" +#include "ResetButton.hpp" namespace Mikami { @@ -24,12 +25,14 @@ uint32_t on = 500, uint32_t off = 200) : Label(x, y, str, mode, fonts, textColor, backColor) { + ResetButton *reset = new ResetButton(); while (true) // Blinking here { wait_ms(on); Draw(backColor); wait_ms(off); Draw(textColor); + reset->Do(); } } @@ -40,4 +43,3 @@ }; } #endif // F746_BLINK_LABEL_HPP -