Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Revision:
6:7aafcaf7cbe2
Child:
8:fe51fbf81dee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/classes/Settings.h	Thu Mar 25 11:31:57 2021 +0000
@@ -0,0 +1,36 @@
+#ifndef SETTINGS_H
+#define SETTINGS_H
+
+#include "rtos.h" //allows multiple threads to run at the same time: https://os.mbed.com/handbook/RTOS
+#include "N5110.h"
+#include "Tone.h"
+#include "ShiftReg.h"
+#include "Joystick.h"
+
+#include "Sound.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);
+
+    //sound start
+    
+    //settings menu
+    int settingsMenu(N5110 &lcd, Tone &dac, Joystick &joystick);
+    
+    //sound off
+    
+private:
+    int ButtonA;
+    int ButtonB;
+};
+
+#endif
\ No newline at end of file