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 el17dg by
settings/settings.h
- Committer:
- Noximilien
- Date:
- 2019-04-23
- Revision:
- 31:becb8f6bf7b7
- Parent:
- 30:d454d0cb72bc
File content as of revision 31:becb8f6bf7b7:
#ifndef SETTINGS_H
#define SETTINGS_H
/**
* Settings Class
* @brief describes the Settings.
* @author Dmitrijs Griskovs
* @date 15/04/2019
*/
class Settings{
public:
/** A constructor for the Tutorial's page number*/
Settings();
/**
* @brief Allows to change contrast and brightness of the screen by using a knob.
* @details Updates and draws the text and the percentage bar. Allows to choose
* the level of contrast and screen brightness.
*/
bool updateAndWriteSettings();
private:
static const int total_pages = 2;
static const float time_delay = 100;
int current_page;
void settingsPage0();
void settingsPage1();
void drawArrowsAndExitButton();
};
#endif
