This project is a DIY mbed version of your favorite childhood game
Dependencies: mbed 4DGL-uLCD-SE LCD_fonts SDFileSystem MMA8452
SaveFile.h@0:bce994168592, 2019-04-14 (annotated)
- Committer:
- aklaussen
- Date:
- Sun Apr 14 01:39:35 2019 +0000
- Revision:
- 0:bce994168592
publish working code;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aklaussen | 0:bce994168592 | 1 | #include <vector> |
aklaussen | 0:bce994168592 | 2 | #include <string> |
aklaussen | 0:bce994168592 | 3 | |
aklaussen | 0:bce994168592 | 4 | // Some utilities for saving images off the screen |
aklaussen | 0:bce994168592 | 5 | |
aklaussen | 0:bce994168592 | 6 | int save_image(); // save the current pixel values from the screen |
aklaussen | 0:bce994168592 | 7 | int read_image(const char * fn = "/sd/save"); // read from a file back into the screen pixel by pixel |
aklaussen | 0:bce994168592 | 8 | int color_convert(int); // unpack from RGB 565 to regular HEX RGB |
aklaussen | 0:bce994168592 | 9 | |
aklaussen | 0:bce994168592 | 10 | std::vector<std::string> read_file_names(); |
aklaussen | 0:bce994168592 | 11 | int get_highest_number (std::vector<std::string> filenames); |