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.
settings.h
00001 #ifndef SETTINGS_H 00002 #define SETTINGS_H 00003 00004 /** 00005 * Settings Class 00006 * @brief describes the Settings. 00007 * @author Dmitrijs Griskovs 00008 * @date 15/04/2019 00009 */ 00010 class Settings{ 00011 public: 00012 /** A constructor for the Tutorial's page number*/ 00013 Settings(); 00014 /** 00015 * @brief Allows to change contrast and brightness of the screen by using a knob. 00016 * @details Updates and draws the text and the percentage bar. Allows to choose 00017 * the level of contrast and screen brightness. 00018 */ 00019 bool updateAndWriteSettings(); 00020 00021 private: 00022 static const int total_pages = 2; 00023 static const float time_delay = 100; 00024 int current_page; 00025 void settingsPage0(); 00026 void settingsPage1(); 00027 void drawArrowsAndExitButton(); 00028 }; 00029 00030 #endif
Generated on Wed Dec 20 2023 20:30:17 by
