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
Menus/OptionsMenu/OptionsMenu.cpp
- Committer:
- el17ajf
- Date:
- 2019-05-09
- Revision:
- 44:44aa01af687e
- Parent:
- 26:baa7077449e7
File content as of revision 44:44aa01af687e:
#include "OptionsMenu.h"
#include "Menu.h"
#include "Prefs.h"
#include "Graphics.h"
void Menus::OptionsMenu::updateAndDraw(UI * ui) {
ui->drawLabel("options");
ui->newLine();
if (ui->drawAndCheckButton("clr all")) {
Prefs::getInstance()->resetAll();
close();
}
if (ui->drawAndCheckButton("light")) {
Graphics::toggleLight();
}
ui->newLine();
if (ui->drawAndCheckButton("back")) {
close();
}
}
