Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
Diff: classes/HighScore.h
- Revision:
- 11:7c1e2a9303d3
- Parent:
- 2:532b0225519f
- Child:
- 12:20ac766b3175
--- a/classes/HighScore.h Tue Apr 20 15:35:00 2021 +0000 +++ b/classes/HighScore.h Wed Apr 21 11:08:02 2021 +0000 @@ -1,12 +1,27 @@ #ifndef HIGHSCORE_H #define HIGHSCORE_H +#include "mbed.h" #include "N5110.h" class HighScore { - void viewScores(N5110 &lcd); - public: + //display value in file + void display_File(N5110 &lcd); + + //amend file + void write_File(int score); + + //read from file + int read_File(); + +private: + char writeScore1[16]; //string used to convert score to string + char readScore1[16]; + int stringCon1; + int writeScore; + int readScore; + int score1; }; #endif \ No newline at end of file