Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Front/Front.h

Committer:
lukeocarwright
Date:
2020-05-05
Revision:
8:f305ea78b2b1
Parent:
7:33cb5f2db1ee
Child:
13:27300c533dd1

File content as of revision 8:f305ea78b2b1:

#ifndef FRONT_H
#define FRONT_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Menu.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;
    //methods
    //constructor
    Front();

    //destructior
    ~Front();
    

    //runs whole front pannel
    void frontrun(N5110 &lcd, Gamepad &pad, int submenu);
    
private:
//variables
    int menuflag;

//methods
    //initial setup of front panel
    void frontsetup(N5110 &lcd, Gamepad &pad, int submenu);

    //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);
};

#endif