GUI parts for DISCO-F746NG. GuiBase, Button, ButtonGroup, ResetButton, Label, BlinkLabel, NumericLabel, SeekBar, SeekbarGroup
Dependencies: Array_Matrix BSP_DISCO_F746NG
Fork of F746_GUI by
Diff: BlinkLabel.hpp
- Revision:
- 29:551a5f1b52b9
- Parent:
- 27:115219bcd9f5
diff -r e2b7ea78b7a0 -r 551a5f1b52b9 BlinkLabel.hpp --- a/BlinkLabel.hpp Wed Jan 25 13:56:02 2017 +0000 +++ b/BlinkLabel.hpp Wed Jan 25 14:18:42 2017 +0000 @@ -2,7 +2,7 @@ // BlinkLabel class -- derived class of Label class // For displaying error message // -// 2017/01/16, Copyright (c) 2017 MIKAMI, Naoki +// 2017/01/25, Copyright (c) 2017 MIKAMI, Naoki //----------------------------------------------------------- #ifndef F746_BLINK_LABEL_HPP @@ -25,14 +25,14 @@ uint32_t on = 500, uint32_t off = 200) : Label(x, y, str, mode, fonts, textColor, backColor) { - ResetButton *reset = new ResetButton(); + ResetButton reset; while (true) // Blinking here { wait_ms(on); Draw(backColor); wait_ms(off); Draw(textColor); - reset->DoIfTouched(); + reset.DoIfTouched(); } } @@ -43,3 +43,4 @@ }; } #endif // F746_BLINK_LABEL_HPP +