Created
October 2, 2019 20:07
-
-
Save stoffera/658c8ec7467126ff884071c22c5502d7 to your computer and use it in GitHub Desktop.
OpenMono Display BMP using Arduino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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