summaryrefslogtreecommitdiffstats
path: root/buttons.cpp
Commit message (Collapse)AuthorAge
* Implement BaseApp method called when btn releasedConfuSomu2021-08-23
| | | | | I have done some basic testing using breakpoints. I plan to build a app used for testing the API and the feature set in the future.
* Tidy up project tree; move api, appMgr and BaseAppConfuSomu2021-08-20
|
* Rename current_app to foreground_appConfuSomu2021-08-05
| | | | | This is a more descriptive name as there could be multiple apps that are currently open, or on-screen, such as a system UI or a status bar.
* Move app manager functions to a namespaceConfuSomu2021-08-05
| | | | This helps with compartmentalisation and organisation.
* Implement virtual getter for app attributesConfuSomu2021-08-01
| | | | | This is done to allow each app to be able to set their own app attributes without having them be overshadowed by BaseApp's defaults.
* 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.
* Move functions related to app lifecycle managmentConfuSomu2021-06-25
| | | | They have been moved to a new file, to provide better encapulation.
* Add delta to app_btnpress argumentsConfuSomu2021-04-28
| | | | This allows add to implement double clicking, for instance.
* Move check for button time since press to functionConfuSomu2021-04-25
| | | | | This allows later updating the code to have the check work correctly when start time > current time.
* Fix race condition on HOME press while renderingConfuSomu2021-04-22
| | | | | | | | | This existed because waiting for the app to finish rendering was done in a blocking manner, meaning that the rendering state would never end. This would block the microcontroller in a loop. This was fixed by rewriting the part related to app switching to correctly do the switching while the app is not rendering.
* Move global variables to structConfuSomu2021-04-22
|
* 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.
* Enter shallow sleep when there are no interactionsConfuSomu2021-03-02
| | | | Current app stops getting refreshed and display is turned off.
* Wait for button press then hide popupConfuSomu2021-03-01
|
* Adopt C++ConfuSomu2021-02-20
A large number of changes had to be made to use C++. "extern C" had to be added for a few headers not adapted to C++. See https://github.com/raspberrypi/pico-sdk/pull/106 for fix in affected files. They will be removed when the pull request is merged in pico-sdk's master branch.