Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

classes/Settings.h

Committer:
el18a2k
Date:
2021-04-21
Revision:
13:183bd19f3d7d
Parent:
12:20ac766b3175
Child:
14:f1552b691274

File content as of revision 13:183bd19f3d7d:

#ifndef SETTINGS_H
#define SETTINGS_H

#include "N5110.h"
#include "Tone.h"
#include "ShiftReg.h"
#include "Joystick.h"

#include "HighScore.h"

class Settings {
public:
    //initialise system
    void systemINIT(N5110 &lcd, Tone &dac, Joystick &joystick);
    
    //read button A
    int buttonA_state(int ButtonA);
    
    //read button B
    int buttonB_state(int ButtonB);
    
    //settings menu
    void settingsMenu(N5110 &lcd, Tone &dac, Joystick &joystick);
    
private:
    int ButtonA;
    int ButtonB;
    int rect_width;
};

#endif