Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
classes/Settings.h@12:20ac766b3175, 2021-04-21 (annotated)
- Committer:
- el18a2k
- Date:
- Wed Apr 21 15:24:31 2021 +0000
- Revision:
- 12:20ac766b3175
- Parent:
- 11:7c1e2a9303d3
- Child:
- 13:183bd19f3d7d
lots of bugs
Who changed what in which revision?
User | Revision | Line number | New 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 | 11:7c1e2a9303d3 | 9 | #include "HighScore.h" |
el18a2k | 11:7c1e2a9303d3 | 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 | 12:20ac766b3175 | 29 | int rect_width; |
el18a2k | 6:7aafcaf7cbe2 | 30 | }; |
el18a2k | 6:7aafcaf7cbe2 | 31 | |
el18a2k | 6:7aafcaf7cbe2 | 32 | #endif |