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.
Dependencies: FlashFileSystem mbed RA8875
You are viewing an older revision! See the latest version
Homepage
Bitmap Demo¶
This demo published each of a list of bitmap files to the display. On the terminal it displays the filename and the return-code (in case of an error).
Items of interest to change and rebuild/test:
// Not all systems have the LocalFileSystem. Plug in the library and driver for yours. LocalFileSystem local("local"); // BMP test TestImage_T TestImage[] = { { 0, 0, "/local/01601602.bmp"}, { 0, 0, "/local/48027224.bmp"}, { 0, 0, "/local/48027208.bmp"}, { 0, 0, "/local/48027204.bmp"}, { 0, 0, "/local/48027202.bmp"}, { 0, 0, "/local/TestPat.bmp"} }; // deefine your screen size and color depth. #define SCREEN_W 480 #define SCREEN_H 272 #define SCREEN_BPP 16
LocalFileSystem may need to be altered to SDFileSystem (for example) and the corresponding paths in the TestImage array.
Also, the Screen size and bit per pixel color depth.
Images¶
The following image files are saved in different resolution and color depth. The first, and smallest, was simply for developing the monochrome support. Others are 24-bit color, 8-bit color, 4-bit color, and a mislabeled 1-bit color (shown as 02).
/media/uploads/WiredHome/01601602.bmp
/media/uploads/WiredHome/48027224.bmp
/media/uploads/WiredHome/48027208.bmp
/media/uploads/WiredHome/48027204.bmp
/media/uploads/WiredHome/48027202.bmp
I've left "TestPat.bmp" out - choose your own file or remove that line from the list.