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:
- 26:baa7077449e7
- Parent:
- 21:62d2b5b73160
--- a/Menus/OptionsMenu/OptionsMenu.cpp Thu Apr 04 15:53:06 2019 +0000
+++ b/Menus/OptionsMenu/OptionsMenu.cpp Thu Apr 04 18:39:45 2019 +0000
@@ -2,14 +2,18 @@
#include "Menu.h"
#include "Prefs.h"
+#include "Graphics.h"
void Menus::OptionsMenu::updateAndDraw(UI * ui) {
ui->drawLabel("options");
ui->newLine();
- if (ui->drawAndCheckButton("clear all")) {
+ if (ui->drawAndCheckButton("clr all")) {
Prefs::getInstance()->resetAll();
close();
}
+ if (ui->drawAndCheckButton("light")) {
+ Graphics::toggleLight();
+ }
ui->newLine();
if (ui->drawAndCheckButton("back")) {
close();
