Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Committer:
el18a2k
Date:
Mon Aug 02 14:35:02 2021 +0000
Revision:
14:f1552b691274
Parent:
13:183bd19f3d7d
final

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18a2k 14:f1552b691274 1 /* Fish Eat Game v2.0
el18a2k 14:f1552b691274 2 * Author: Andrew Knowles
el18a2k 14:f1552b691274 3 * Date: 21/04/2021
el18a2k 14:f1552b691274 4 * Note: See hearder files for additional recognistion */
el18a2k 14:f1552b691274 5
el18a2k 6:7aafcaf7cbe2 6 #ifndef SETTINGS_H
el18a2k 6:7aafcaf7cbe2 7 #define SETTINGS_H
el18a2k 6:7aafcaf7cbe2 8
el18a2k 6:7aafcaf7cbe2 9 #include "N5110.h"
el18a2k 6:7aafcaf7cbe2 10 #include "Tone.h"
el18a2k 6:7aafcaf7cbe2 11 #include "ShiftReg.h"
el18a2k 6:7aafcaf7cbe2 12 #include "Joystick.h"
el18a2k 6:7aafcaf7cbe2 13
el18a2k 11:7c1e2a9303d3 14 #include "HighScore.h"
el18a2k 11:7c1e2a9303d3 15
el18a2k 6:7aafcaf7cbe2 16 class Settings {
el18a2k 6:7aafcaf7cbe2 17 public:
el18a2k 6:7aafcaf7cbe2 18 //initialise system
el18a2k 6:7aafcaf7cbe2 19 void systemINIT(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 6:7aafcaf7cbe2 20
el18a2k 6:7aafcaf7cbe2 21 //read button A
el18a2k 6:7aafcaf7cbe2 22 int buttonA_state(int ButtonA);
el18a2k 6:7aafcaf7cbe2 23
el18a2k 6:7aafcaf7cbe2 24 //read button B
el18a2k 6:7aafcaf7cbe2 25 int buttonB_state(int ButtonB);
el18a2k 6:7aafcaf7cbe2 26
el18a2k 6:7aafcaf7cbe2 27 //settings menu
el18a2k 8:fe51fbf81dee 28 void settingsMenu(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 6:7aafcaf7cbe2 29
el18a2k 6:7aafcaf7cbe2 30 private:
el18a2k 6:7aafcaf7cbe2 31 int ButtonA;
el18a2k 6:7aafcaf7cbe2 32 int ButtonB;
el18a2k 12:20ac766b3175 33 int rect_width;
el18a2k 6:7aafcaf7cbe2 34 };
el18a2k 6:7aafcaf7cbe2 35
el18a2k 6:7aafcaf7cbe2 36 #endif