Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Committer:
el18a2k
Date:
Mon Mar 29 20:32:45 2021 +0000
Revision:
8:fe51fbf81dee
Parent:
6:7aafcaf7cbe2
Child:
9:d52c4df02493
Instructions and settings complete

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18a2k 6:7aafcaf7cbe2 1 #ifndef SETTINGS_H
el18a2k 6:7aafcaf7cbe2 2 #define SETTINGS_H
el18a2k 6:7aafcaf7cbe2 3
el18a2k 6:7aafcaf7cbe2 4 #include "N5110.h"
el18a2k 6:7aafcaf7cbe2 5 #include "Tone.h"
el18a2k 6:7aafcaf7cbe2 6 #include "ShiftReg.h"
el18a2k 6:7aafcaf7cbe2 7 #include "Joystick.h"
el18a2k 6:7aafcaf7cbe2 8
el18a2k 6:7aafcaf7cbe2 9 #include "Sound.h"
el18a2k 6:7aafcaf7cbe2 10
el18a2k 6:7aafcaf7cbe2 11 class Settings {
el18a2k 6:7aafcaf7cbe2 12
el18a2k 6:7aafcaf7cbe2 13 public:
el18a2k 6:7aafcaf7cbe2 14 //initialise system
el18a2k 6:7aafcaf7cbe2 15 void systemINIT(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 6:7aafcaf7cbe2 16
el18a2k 6:7aafcaf7cbe2 17 //read button A
el18a2k 6:7aafcaf7cbe2 18 int buttonA_state(int ButtonA);
el18a2k 6:7aafcaf7cbe2 19
el18a2k 6:7aafcaf7cbe2 20 //read button B
el18a2k 6:7aafcaf7cbe2 21 int buttonB_state(int ButtonB);
el18a2k 6:7aafcaf7cbe2 22
el18a2k 6:7aafcaf7cbe2 23 //settings menu
el18a2k 8:fe51fbf81dee 24 void settingsMenu(N5110 &lcd, Tone &dac, Joystick &joystick);
el18a2k 6:7aafcaf7cbe2 25
el18a2k 6:7aafcaf7cbe2 26 private:
el18a2k 6:7aafcaf7cbe2 27 int ButtonA;
el18a2k 6:7aafcaf7cbe2 28 int ButtonB;
el18a2k 6:7aafcaf7cbe2 29 };
el18a2k 6:7aafcaf7cbe2 30
el18a2k 6:7aafcaf7cbe2 31 #endif