This project is a DIY mbed version of your favorite childhood game
Dependencies: mbed 4DGL-uLCD-SE LCD_fonts SDFileSystem MMA8452
Diff: SaveFile.h
- Revision:
- 0:bce994168592
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SaveFile.h Sun Apr 14 01:39:35 2019 +0000 @@ -0,0 +1,11 @@ +#include <vector> +#include <string> + +// Some utilities for saving images off the screen + +int save_image(); // save the current pixel values from the screen +int read_image(const char * fn = "/sd/save"); // read from a file back into the screen pixel by pixel +int color_convert(int); // unpack from RGB 565 to regular HEX RGB + +std::vector<std::string> read_file_names(); +int get_highest_number (std::vector<std::string> filenames);