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.
Front/Front.h@8:f305ea78b2b1, 2020-05-05 (annotated)
- Committer:
- lukeocarwright
- Date:
- Tue May 05 16:46:01 2020 +0000
- Revision:
- 8:f305ea78b2b1
- Parent:
- 7:33cb5f2db1ee
- Child:
- 13:27300c533dd1
Added Sliders to Faders ready for GUI.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lukeocarwright | 7:33cb5f2db1ee | 1 | #ifndef FRONT_H |
lukeocarwright | 7:33cb5f2db1ee | 2 | #define FRONT_H |
lukeocarwright | 7:33cb5f2db1ee | 3 | |
lukeocarwright | 7:33cb5f2db1ee | 4 | #include "mbed.h" |
lukeocarwright | 7:33cb5f2db1ee | 5 | #include "N5110.h" |
lukeocarwright | 7:33cb5f2db1ee | 6 | #include "Gamepad.h" |
lukeocarwright | 8:f305ea78b2b1 | 7 | #include "Menu.h" |
lukeocarwright | 7:33cb5f2db1ee | 8 | |
lukeocarwright | 7:33cb5f2db1ee | 9 | /** Front class |
lukeocarwright | 7:33cb5f2db1ee | 10 | * @author Luke Cartwright, University of Leeds |
lukeocarwright | 7:33cb5f2db1ee | 11 | * @brief manages front pannel of Synth |
lukeocarwright | 7:33cb5f2db1ee | 12 | * @date May 2020 |
lukeocarwright | 7:33cb5f2db1ee | 13 | */ |
lukeocarwright | 8:f305ea78b2b1 | 14 | |
lukeocarwright | 8:f305ea78b2b1 | 15 | |
lukeocarwright | 7:33cb5f2db1ee | 16 | class Front |
lukeocarwright | 7:33cb5f2db1ee | 17 | { |
lukeocarwright | 7:33cb5f2db1ee | 18 | public: |
lukeocarwright | 7:33cb5f2db1ee | 19 | //variables |
lukeocarwright | 7:33cb5f2db1ee | 20 | int submenu; |
lukeocarwright | 8:f305ea78b2b1 | 21 | int a; |
lukeocarwright | 8:f305ea78b2b1 | 22 | int d; |
lukeocarwright | 8:f305ea78b2b1 | 23 | int s; |
lukeocarwright | 8:f305ea78b2b1 | 24 | int r; |
lukeocarwright | 7:33cb5f2db1ee | 25 | //methods |
lukeocarwright | 7:33cb5f2db1ee | 26 | //constructor |
lukeocarwright | 7:33cb5f2db1ee | 27 | Front(); |
lukeocarwright | 7:33cb5f2db1ee | 28 | |
lukeocarwright | 7:33cb5f2db1ee | 29 | //destructior |
lukeocarwright | 7:33cb5f2db1ee | 30 | ~Front(); |
lukeocarwright | 7:33cb5f2db1ee | 31 | |
lukeocarwright | 8:f305ea78b2b1 | 32 | |
lukeocarwright | 7:33cb5f2db1ee | 33 | //runs whole front pannel |
lukeocarwright | 7:33cb5f2db1ee | 34 | void frontrun(N5110 &lcd, Gamepad &pad, int submenu); |
lukeocarwright | 7:33cb5f2db1ee | 35 | |
lukeocarwright | 7:33cb5f2db1ee | 36 | private: |
lukeocarwright | 7:33cb5f2db1ee | 37 | //variables |
lukeocarwright | 8:f305ea78b2b1 | 38 | int menuflag; |
lukeocarwright | 7:33cb5f2db1ee | 39 | |
lukeocarwright | 8:f305ea78b2b1 | 40 | //methods |
lukeocarwright | 8:f305ea78b2b1 | 41 | //initial setup of front panel |
lukeocarwright | 8:f305ea78b2b1 | 42 | void frontsetup(N5110 &lcd, Gamepad &pad, int submenu); |
lukeocarwright | 8:f305ea78b2b1 | 43 | |
lukeocarwright | 8:f305ea78b2b1 | 44 | //prints waveforms for front disp. |
lukeocarwright | 8:f305ea78b2b1 | 45 | void printwav(N5110 &lcd, int submenu); |
lukeocarwright | 8:f305ea78b2b1 | 46 | |
lukeocarwright | 7:33cb5f2db1ee | 47 | //prints fader |
lukeocarwright | 7:33cb5f2db1ee | 48 | void printfader(N5110 &lcd,int x, int y); |
lukeocarwright | 8:f305ea78b2b1 | 49 | |
lukeocarwright | 8:f305ea78b2b1 | 50 | //prints sliders |
lukeocarwright | 8:f305ea78b2b1 | 51 | void Front::printsliders(N5110 &lcd, int a, int d,int s,int r); |
lukeocarwright | 7:33cb5f2db1ee | 52 | }; |
lukeocarwright | 7:33cb5f2db1ee | 53 | |
lukeocarwright | 7:33cb5f2db1ee | 54 | #endif |