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: mbed
Fork of el17ajf by
Diff: Menus/OptionsMenu/OptionsMenu.cpp
- Revision:
- 21:62d2b5b73160
- Parent:
- 20:cd96f98f5f79
- Child:
- 26:baa7077449e7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Menus/OptionsMenu/OptionsMenu.cpp Wed Apr 03 20:33:27 2019 +0000
@@ -0,0 +1,17 @@
+#include "OptionsMenu.h"
+
+#include "Menu.h"
+#include "Prefs.h"
+
+void Menus::OptionsMenu::updateAndDraw(UI * ui) {
+ ui->drawLabel("options");
+ ui->newLine();
+ if (ui->drawAndCheckButton("clear all")) {
+ Prefs::getInstance()->resetAll();
+ close();
+ }
+ ui->newLine();
+ if (ui->drawAndCheckButton("back")) {
+ close();
+ }
+}
