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: C12832_lcd MMA7660 USBDevice mbed
user_interface.h@2:9429f84ea165, 2014-03-27 (annotated)
- Committer:
- bw
- Date:
- Thu Mar 27 21:43:41 2014 +0000
- Revision:
- 2:9429f84ea165
- Parent:
- 0:bbf6cf0eab95
Clean up comments.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bw | 0:bbf6cf0eab95 | 1 | /******************************************************************************* |
| bw | 0:bbf6cf0eab95 | 2 | * Mangages LCD display, joystick and accelerometer for user interface. |
| bw | 0:bbf6cf0eab95 | 3 | * Bryan Wade |
| bw | 0:bbf6cf0eab95 | 4 | * 27 MAR 2014 |
| bw | 0:bbf6cf0eab95 | 5 | ******************************************************************************/ |
| bw | 0:bbf6cf0eab95 | 6 | #ifndef USER_INTERFACE_H |
| bw | 0:bbf6cf0eab95 | 7 | #define USER_INTERFACE_H |
| bw | 0:bbf6cf0eab95 | 8 | |
| bw | 0:bbf6cf0eab95 | 9 | #include "effects.h" |
| bw | 0:bbf6cf0eab95 | 10 | |
| bw | 0:bbf6cf0eab95 | 11 | // Initialize module. |
| bw | 0:bbf6cf0eab95 | 12 | void UI_Initialize(void); |
| bw | 0:bbf6cf0eab95 | 13 | |
| bw | 0:bbf6cf0eab95 | 14 | // Update the display and poll all input devices. |
| bw | 0:bbf6cf0eab95 | 15 | void UI_Update(int32_t bufferLevel); |
| bw | 0:bbf6cf0eab95 | 16 | |
| bw | 0:bbf6cf0eab95 | 17 | // Get the effect mode selected by joystick. |
| bw | 0:bbf6cf0eab95 | 18 | effect_mode_t UI_GetEffectMode(void); |
| bw | 0:bbf6cf0eab95 | 19 | |
| bw | 0:bbf6cf0eab95 | 20 | // Get the effect gain selected by accelerometer tilt. |
| bw | 0:bbf6cf0eab95 | 21 | uint16_t UI_GetEffectGain(void); |
| bw | 0:bbf6cf0eab95 | 22 | |
| bw | 0:bbf6cf0eab95 | 23 | #endif |