Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Array_Matrix BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG
Fork of F746_GUI by
Revision 29:551a5f1b52b9, committed 2017-01-25
- Comitter:
- MikamiUitOpen
- Date:
- Wed Jan 25 14:18:42 2017 +0000
- Parent:
- 28:e2b7ea78b7a0
- Child:
- 30:835a6b1c0fad
- Commit message:
- 30
Changed in this revision
| BlinkLabel.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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
+
