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
- Committer:
- lukeocarwright
- Date:
- 2020-05-19
- Revision:
- 14:9cfe0041cc4e
- Parent:
- 13:27300c533dd1
- Child:
- 18:204cd747b54a
File content as of revision 14:9cfe0041cc4e:
#ifndef FRONT_H #define FRONT_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Menu.h" #include "Sound.h" /** Front class * @author Luke Cartwright, University of Leeds * @brief manages front pannel of Synth * @date May 2020 */ class Front { public: //variables int submenu; int a; int d; int s; int r; int dir; int dir_1; uint16_t out; //Methods //Constructor Front(); //Destructior ~Front(); //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, 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 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