Skip to content

Instantly share code, notes, and snippets.

@stoffera
Created October 2, 2019 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoffera/658c8ec7467126ff884071c22c5502d7 to your computer and use it in GitHub Desktop.
Save stoffera/658c8ec7467126ff884071c22c5502d7 to your computer and use it in GitHub Desktop.
OpenMono Display BMP using Arduino
#include <mono.h>
#include <io/file_system.h>
#include <stdio.h>
mono::io::FileSystem* fs; // create an instance of the FS I/O
mono::media::BMPImage* img; // create a bmp image representation
mono::ui::ImageView* bmpView; // create a UI view to display the image
void setup() {
// put your setup code here, to run once:
fs = new mono::io::FileSystem("sd");
img = new mono::media::BMPImage("/sd/mono/mockups/ToDo.bmp");
bmpView = new mono::ui::ImageView(img);
bmpView->show();
}
void loop() {
// put your main code here, to run repeatedly:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment