Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
classes/Settings.h@13:183bd19f3d7d, 2021-04-21 (annotated)
- Committer:
- el18a2k
- Date:
- Wed Apr 21 16:26:26 2021 +0000
- Revision:
- 13:183bd19f3d7d
- Parent:
- 12:20ac766b3175
- Child:
- 14:f1552b691274
bugs seem to of disapeared
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 | public: |
el18a2k | 6:7aafcaf7cbe2 | 13 | //initialise system |
el18a2k | 6:7aafcaf7cbe2 | 14 | void systemINIT(N5110 &lcd, Tone &dac, Joystick &joystick); |
el18a2k | 6:7aafcaf7cbe2 | 15 | |
el18a2k | 6:7aafcaf7cbe2 | 16 | //read button A |
el18a2k | 6:7aafcaf7cbe2 | 17 | int buttonA_state(int ButtonA); |
el18a2k | 6:7aafcaf7cbe2 | 18 | |
el18a2k | 6:7aafcaf7cbe2 | 19 | //read button B |
el18a2k | 6:7aafcaf7cbe2 | 20 | int buttonB_state(int ButtonB); |
el18a2k | 6:7aafcaf7cbe2 | 21 | |
el18a2k | 6:7aafcaf7cbe2 | 22 | //settings menu |
el18a2k | 8:fe51fbf81dee | 23 | void settingsMenu(N5110 &lcd, Tone &dac, Joystick &joystick); |
el18a2k | 6:7aafcaf7cbe2 | 24 | |
el18a2k | 6:7aafcaf7cbe2 | 25 | private: |
el18a2k | 6:7aafcaf7cbe2 | 26 | int ButtonA; |
el18a2k | 6:7aafcaf7cbe2 | 27 | int ButtonB; |
el18a2k | 12:20ac766b3175 | 28 | int rect_width; |
el18a2k | 6:7aafcaf7cbe2 | 29 | }; |
el18a2k | 6:7aafcaf7cbe2 | 30 | |
el18a2k | 6:7aafcaf7cbe2 | 31 | #endif |