Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SavedGames/SavedGames.h
- Revision:
- 67:a2984682d641
- Parent:
- 64:e9dfc35a1738
- Child:
- 68:bb1650c657ef
--- a/SavedGames/SavedGames.h Thu May 21 17:37:15 2020 +0000 +++ b/SavedGames/SavedGames.h Thu May 21 20:23:24 2020 +0000 @@ -32,7 +32,7 @@ * @param lcd @details N5110 object * @param sd @details sd card object */ - void init(SDFileSystem &sd,N5110 &lcd); + void init(); /** Adds saved data to sd card * @param sd @details sd card object @@ -63,6 +63,19 @@ */ void save_game_screen(N5110 &lcd); + /** Runs the save test unit test + * @param lcd @details N5110 object + * @param sd @details sd card object + */ + void run_save_test(SDFileSystem &sd, N5110 &lcd); + + /** Save test unit test, checks the saving and reading functions work + * @param lcd @details N5110 object + * @param sd @details sd card object + * @param d_ @details Direction of joystick + */ + bool save_test(Direction d_,SDFileSystem &sd, N5110 &lcd); + // Accessors and mutators -------------------------------------------------- /** Gets error flag @@ -99,7 +112,7 @@ * @param lcd @details N5110 object */ void no_saved_files(N5110 &lcd); - + // Varibles ---------------------------------------------------------------- /** Flag for error, true = error */