summaryrefslogtreecommitdiffstats
path: root/api.hpp
Commit message (Collapse)AuthorAge
* Remove all references to render interval methodsBaseApp-classConfuSomu2021-08-14
| | | | | The main loop was reordered for a little optimisation as we cannot set free standingly(?) anymore the render interval to 0.
* Allow apps to close and quit themselves via returnConfuSomu2021-08-11
| | | | | | | | | value when returning from render(), btnpressed() or bgrefresh(). This can help free system ressources when apps do not need to be running anymore. The AppAttributes::destroy_on_exit is currently ignored to give apps more freedom. The main_clock app has had some changes done to test the new features.
* Implement an app_manager that supports BaseAppConfuSomu2021-07-25
| | | | | | | | | and create classes for home_menu and main_clock apps. This commit has a lot of changes as multiple parts of the project had to be changed to support running apps that are based on the BaseApp class. It could not have been done in multiple commits as the progam would not be able to build and thus I would not be able to test the changes.
* Add user_settings global structConfuSomu2021-05-06
|
* Ignore home button press when in Api popupConfuSomu2021-04-22
| | | | | | | This avoids quitting the app when an Api popup is displayed, causing problems. The variable resposable for this has been renamed to better reflect its use.
* Use const char* as arg for Api::display_write_stringConfuSomu2021-04-14
|
* Rewrite app_init to check for malloc/new failuresConfuSomu2021-04-08
|
* Implement API method for setting current datetimeapi-classConfuSomu2021-03-28
|
* Implement API method for choosing between stringsConfuSomu2021-03-28
| | | | This allows creating a menu with more ease.
* Implement API method for popup forConfuSomu2021-03-16
| | | | choosing number
* Implement API method to ask user for yes/no choiceConfuSomu2021-03-16
|
* Move display of popup in API to generic functionConfuSomu2021-03-16
| | | | | | | | This allows implementing different popup types with more ease. This new function made me notice that the application's heap (and maybe stack) usage is high. When testing the updated gui_popup_text method, I noticed that sometimes, the std::string cannot be allocated. There are more details in the updated api header file.
* Dump display backbuffer only onceConfuSomu2021-03-04
| | | | | This reduces display flickering and might help in having a longer battery life.
* Fix footer and header background drawingConfuSomu2021-03-04
|
* Enter shallow sleep when there are no interactionsConfuSomu2021-03-02
| | | | Current app stops getting refreshed and display is turned off.
* Implement API to set/get render intervalConfuSomu2021-03-01
|
* Implement API method for setting performanceConfuSomu2021-03-01
| | | | | This is to lower power consumption by having the apps set the lowest performance they need.
* Implement API method for display header textConfuSomu2021-03-01
|
* Implement API method for displaying footer textConfuSomu2021-03-01
|
* Wait for button press then hide popupConfuSomu2021-03-01
|
* Implement method in API for drawing a popupConfuSomu2021-03-01
| | | | I had to modify the OLED library to correctly work with newlines.
* Expose features from the OLED library in the APIConfuSomu2021-02-28
|
* Refactor API function namesConfuSomu2021-02-27
|
* Implement getDatetime function in APIConfuSomu2021-02-27
|
* Remove unnecessary includesConfuSomu2021-02-27
|
* Use an Api class for abstractionConfuSomu2021-02-27
It is currently very basic as functions will be added to it when the time comes. The idea is to have a method to, for example, show notifications (and store them in a list with metadata) to the user or also to easily show a message box overlaying the current display. Private class members will permit encapsulations of variables related to these features and limit the privilage that each app has on the device.