Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
25:f230af268e8b
Parent:
24:c3bb1b0b2207
Child:
26:a6033830d01c
--- a/Front/Front.h	Sun May 24 15:20:31 2020 +0000
+++ b/Front/Front.h	Sun May 24 17:10:27 2020 +0000
@@ -53,6 +53,7 @@
     int ud; //up/down
     bool noteon; //trigger for play tone
     int release_flag; //sets 1 for if release on
+    int filter_type;
     
     #ifdef CSV //COMMA SEPERATED VALUE
     int itterator; //Itterator for CSV
@@ -61,7 +62,7 @@
 //methods
     /** initial setup of front panel
     */
-    void frontsetup(N5110 &lcd, Gamepad &pad, int submenu, bool initial);
+    void frontsetup(N5110 &lcd, Gamepad &pad, int submenu, int filter_type, bool initial);
     
     /** Initialises front
     * @ Runs all initial front functions
@@ -83,6 +84,17 @@
     /**prints individual slider to LCD
     */
     void printslider(N5110 &lcd, int x_val, int y_val, bool use);
+    
+    /**Prints Filter Graphic
+    * @prints correct graphic dependant on filter_type
+    */
+    void printfilter(N5110 &lcd, int filter_type);
+    
+    /**Manages Parameter
+    * @manages joystick input
+    * @converts to parameter sleected + value
+    */
+    int parameter_manager(Gamepad &pad, int dir, int a, int d, int s, int r);
 
     /**incraments correct adsr value
     * @outputs new ADSR value when called