This is a basic example how to draw a bitmap on Pokitto screen

Dependencies:   PokittoLib

/media/uploads/Pokitto/img_20180101_122531.jpg

Pokitto drawBitmap basic example

The bitmap was created with Photoshop (but you can use any similar drawing program) and converted to a .h resource file using Filippos img2pok tool, available here: https://github.com/Effer/img2pok

To try it out yourself

Just press the "Import into compiler" button on top right of this page!

Revision:
2:5ef3dd229260
Parent:
0:9783d85b2a06
--- a/bitmap.cpp	Fri Jan 05 02:29:31 2018 +0000
+++ b/bitmap.cpp	Wed Jan 10 17:07:11 2018 +0000
@@ -8,6 +8,7 @@
 int main () {
     mygame.begin(); // start the application
     mygame.display.load565Palette(pokitto_icon_pal); //load the palette for the image
+    mygame.display.bgcolor=0;
     /* the "while" loop runs as long as the program is running */
     while (mygame.isRunning()) {
         /* mygame.update() is processed whenever it is time to update the screen */