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@31:becb8f6bf7b7, 2019-04-23 (annotated)
- Committer:
- Noximilien
- Date:
- Tue Apr 23 18:18:57 2019 +0000
- Revision:
- 31:becb8f6bf7b7
- Parent:
- 30:d454d0cb72bc
Have changed comments structure as well as the content. Finished intro music. Have cleaned a code in some places to make it readable.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Noximilien | 24:0570cb4b92d7 | 1 | #ifndef SETTINGS_H |
| Noximilien | 24:0570cb4b92d7 | 2 | #define SETTINGS_H |
| Noximilien | 24:0570cb4b92d7 | 3 | |
| Noximilien | 31:becb8f6bf7b7 | 4 | /** |
| Noximilien | 31:becb8f6bf7b7 | 5 | * Settings Class |
| Noximilien | 31:becb8f6bf7b7 | 6 | * @brief describes the Settings. |
| Noximilien | 30:d454d0cb72bc | 7 | * @author Dmitrijs Griskovs |
| Noximilien | 30:d454d0cb72bc | 8 | * @date 15/04/2019 |
| Noximilien | 30:d454d0cb72bc | 9 | */ |
| Noximilien | 24:0570cb4b92d7 | 10 | class Settings{ |
| Noximilien | 31:becb8f6bf7b7 | 11 | public: |
| Noximilien | 31:becb8f6bf7b7 | 12 | /** A constructor for the Tutorial's page number*/ |
| Noximilien | 30:d454d0cb72bc | 13 | Settings(); |
| Noximilien | 31:becb8f6bf7b7 | 14 | /** |
| Noximilien | 31:becb8f6bf7b7 | 15 | * @brief Allows to change contrast and brightness of the screen by using a knob. |
| Noximilien | 31:becb8f6bf7b7 | 16 | * @details Updates and draws the text and the percentage bar. Allows to choose |
| Noximilien | 31:becb8f6bf7b7 | 17 | * the level of contrast and screen brightness. |
| Noximilien | 31:becb8f6bf7b7 | 18 | */ |
| Noximilien | 24:0570cb4b92d7 | 19 | bool updateAndWriteSettings(); |
| Noximilien | 24:0570cb4b92d7 | 20 | |
| Noximilien | 31:becb8f6bf7b7 | 21 | private: |
| Noximilien | 30:d454d0cb72bc | 22 | static const int total_pages = 2; |
| Noximilien | 30:d454d0cb72bc | 23 | static const float time_delay = 100; |
| Noximilien | 30:d454d0cb72bc | 24 | int current_page; |
| Noximilien | 30:d454d0cb72bc | 25 | void settingsPage0(); |
| Noximilien | 30:d454d0cb72bc | 26 | void settingsPage1(); |
| Noximilien | 30:d454d0cb72bc | 27 | void drawArrowsAndExitButton(); |
| Noximilien | 24:0570cb4b92d7 | 28 | }; |
| Noximilien | 24:0570cb4b92d7 | 29 | |
| Noximilien | 24:0570cb4b92d7 | 30 | #endif |
