|
Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Macros | |
| #define | RTC_DATA_ATTR |
Functions | |
| void | app_main (void) |
| void | deinitSystem (void) |
| Deinitialize all components in the system. | |
| void | switchToSwadgeMode (const swadgeMode_t *mode) |
| void | softSwitchToPendingSwadge (void) |
| Switch to the pending Swadge mode without restarting the system. | |
| bool | checkButtonQueueWrapper (buttonEvt_t *evt) |
| Service the queue of button events that caused interrupts This only returns a single event, even if there are multiple in the queue This function may be called multiple times in a row to completely empty the queue. | |
| void | openQuickSettings (void) |
| void | setFrameRateUs (uint32_t newFrameRateUs) |
| Set the framerate, in microseconds. | |
| uint32_t | getFrameRateUs (void) |
| Get the current framerate, in microseconds. | |
| void | switchToSpeaker (void) |
| Enable the speaker (and battery monitor) and disable the microphone. | |
| void | switchToMicrophone (void) |
| Enable the microphone and disable the speaker (and battery monitor) | |
| void | powerDownPeripherals (void) |
| Power down all hardware peripherals. | |
| void | powerUpPeripherals (void) |
| Power up all hardware peripherals. | |
| font_t * | getSysFont (void) |
| Get the Sys Ibm Font. Font is pre-loaded fto ensure a font is always available for devs to use. | |
| #define RTC_DATA_ATTR |
| void app_main | ( | void | ) |
The main entry point for firmware. This initializes the system and runs the main loop
| void deinitSystem | ( | void | ) |
Deinitialize all components in the system.
| void switchToSwadgeMode | ( | const swadgeMode_t * | mode | ) |
Set up variables to synchronously switch the swadge mode in the main loop
| mode | A pointer to the mode to switch to |
| void softSwitchToPendingSwadge | ( | void | ) |
Switch to the pending Swadge mode without restarting the system.
| bool checkButtonQueueWrapper | ( | buttonEvt_t * | evt | ) |
Service the queue of button events that caused interrupts This only returns a single event, even if there are multiple in the queue This function may be called multiple times in a row to completely empty the queue.
This is a wrapper for checkButtonQueue() which also monitors the button to return to the main menu
| evt | If an event occurred, return it through this argument |
| void openQuickSettings | ( | void | ) |
| void setFrameRateUs | ( | uint32_t | newFrameRateUs | ) |
Set the framerate, in microseconds.
| newFrameRateUs | The time between frame draws, in microseconds |
| uint32_t getFrameRateUs | ( | void | ) |
Get the current framerate, in microseconds.
| void switchToSpeaker | ( | void | ) |
Enable the speaker (and battery monitor) and disable the microphone.
| void switchToMicrophone | ( | void | ) |
Enable the microphone and disable the speaker (and battery monitor)
| void powerDownPeripherals | ( | void | ) |
Power down all hardware peripherals.
| void powerUpPeripherals | ( | void | ) |
Power up all hardware peripherals.
| font_t * getSysFont | ( | void | ) |
Get the Sys Ibm Font. Font is pre-loaded fto ensure a font is always available for devs to use.