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.
Diff: Front/Front.h
- Revision:
- 13:27300c533dd1
- Parent:
- 8:f305ea78b2b1
- Child:
- 14:9cfe0041cc4e
diff -r 7a399a476cfd -r 27300c533dd1 Front/Front.h --- a/Front/Front.h Fri May 08 20:08:36 2020 +0000 +++ b/Front/Front.h Sat May 09 13:45:23 2020 +0000 @@ -6,6 +6,7 @@ #include "Gamepad.h" #include "Menu.h" + /** Front class * @author Luke Cartwright, University of Leeds * @brief manages front pannel of Synth @@ -22,6 +23,8 @@ int d; int s; int r; + int dir; + int dir_1; //methods //constructor Front(); @@ -33,22 +36,34 @@ //runs whole front pannel void frontrun(N5110 &lcd, Gamepad &pad, int submenu); + private: //variables int menuflag; + int used; //1->4 (A<D<S<R) + bool use; //1=use 0=!use + bool initial; //sets to run 1st time + int adsr; //incrament correct val + int ud; //up/down //methods //initial setup of front panel - void frontsetup(N5110 &lcd, Gamepad &pad, int submenu); + void frontsetup(N5110 &lcd, Gamepad &pad, int submenu, bool initial); //prints waveforms for front disp. void printwav(N5110 &lcd, int submenu); //prints fader void printfader(N5110 &lcd,int x, int y); - + //prints sliders - void Front::printsliders(N5110 &lcd, int a, int d,int s,int r); + void printsliders(N5110 &lcd, int a, int d,int s,int r, int used); + + //prints individual slider + void printslider(N5110 &lcd, int x_val, int y_val, bool use); + + //incraments correct adsr value + int incrament_adsr(int used, int adsr, int ud); }; #endif \ No newline at end of file