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/pokitto_icon.h	Fri Jan 05 02:29:31 2018 +0000
+++ b/pokitto_icon.h	Wed Jan 10 17:07:11 2018 +0000
@@ -2,50 +2,51 @@
 
 //Total colors 10
 const uint16_t pokitto_icon_pal[] = {
-63519,4195,27973,13092,57210,33972,28185,23545,54611,16678,
+27973,63519,4195,28185,57210,13092,33972,54611,23545,16678,
 };
 
 const uint8_t pokitto_icon[] =
 {
-35,39,
-0,0,1,17,17,17,17,17,17,17,17,17,17,17,17,0,0,0,
-0,0,18,34,34,34,34,34,34,34,34,34,34,34,34,16,0,0,
-0,1,35,50,34,34,34,34,34,34,34,34,34,34,51,33,0,0,
-0,1,35,18,34,34,34,34,34,34,34,34,34,34,19,33,0,0,
-0,1,34,34,17,17,17,17,17,17,17,17,17,18,34,33,0,0,
-0,1,34,33,102,102,102,102,102,102,102,102,102,97,34,33,0,0,
-0,1,34,33,102,102,102,102,102,102,102,102,102,97,34,33,0,0,
-0,1,34,33,102,102,68,70,102,102,68,70,102,97,34,33,0,0,
-0,1,34,33,102,100,68,68,102,100,68,68,102,97,34,33,0,0,
-0,1,34,33,102,68,71,116,70,68,71,116,70,97,34,33,0,0,
-0,17,34,33,102,68,113,20,70,68,113,20,70,97,34,33,16,0,
-1,34,34,33,102,68,113,20,70,68,113,20,70,97,34,34,33,0,
-18,51,34,33,102,100,68,68,102,100,68,68,102,97,34,35,50,16,
-18,49,34,33,102,102,102,102,102,102,102,102,102,97,34,33,50,16,
-19,34,34,33,102,102,136,102,102,102,104,134,102,97,34,34,35,16,
-1,51,34,33,102,102,136,97,17,17,104,134,102,97,34,35,49,0,
-0,19,34,33,102,102,102,97,145,145,102,102,102,97,34,35,16,0,
-0,1,34,33,102,102,102,102,25,22,102,102,102,97,34,33,0,0,
-0,1,34,33,102,102,102,102,102,102,102,102,102,97,34,33,0,0,
-0,1,34,33,102,102,102,102,102,102,102,102,102,97,34,33,0,0,
-0,1,34,34,17,17,17,17,17,17,17,17,17,18,34,33,0,0,
-0,1,34,34,34,34,34,34,34,34,34,34,34,34,34,33,0,0,
-0,1,34,34,34,68,66,34,34,34,34,34,36,66,34,33,0,0,
-0,1,34,34,34,68,66,34,34,34,34,34,68,68,34,33,0,0,
-0,1,34,34,34,68,66,34,34,34,68,34,68,68,34,33,0,0,
-0,1,34,36,68,68,68,68,34,36,68,66,84,69,34,33,0,0,
-0,1,34,36,68,68,68,68,34,36,68,66,37,82,34,33,0,0,
-0,1,34,36,68,68,68,68,34,37,68,82,34,34,34,33,0,0,
-0,1,34,37,85,68,69,85,34,34,85,34,34,34,34,33,0,0,
-0,1,34,34,34,68,66,34,34,34,34,34,34,34,34,33,0,0,
-0,1,34,34,34,68,66,34,68,68,34,34,34,34,34,33,0,0,
-0,1,34,34,34,85,82,34,68,68,34,34,34,34,34,33,0,0,
-0,1,35,18,34,34,34,34,85,85,34,34,34,34,19,33,0,0,
-0,1,35,50,34,34,34,34,34,34,34,34,34,34,51,33,0,0,
-0,1,34,34,34,34,34,34,34,34,34,34,34,34,34,33,0,0,
-0,1,35,50,51,17,17,17,17,17,17,17,19,50,51,33,0,0,
-0,1,35,18,49,0,0,0,0,0,0,0,1,50,19,33,0,0,
-0,0,18,33,16,0,0,0,0,0,0,0,0,17,34,16,0,0,
-0,0,1,16,0,0,0,0,0,0,0,0,0,0,17,0,0,0,
+36,40,
+17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,
+17,17,18,34,34,34,34,34,34,34,34,34,34,34,34,17,17,17,
+17,17,32,0,0,0,0,0,0,0,0,0,0,0,0,33,17,17,
+17,18,5,80,0,0,0,0,0,0,0,0,0,0,85,2,17,17,
+17,18,5,32,0,0,0,0,0,0,0,0,0,0,37,2,17,17,
+17,18,0,0,34,34,34,34,34,34,34,34,34,32,0,2,17,17,
+17,18,0,2,51,51,51,51,51,51,51,51,51,50,0,2,17,17,
+17,18,0,2,51,51,51,51,51,51,51,51,51,50,0,2,17,17,
+17,18,0,2,51,51,68,67,51,51,68,67,51,50,0,2,17,17,
+17,18,0,2,51,52,68,68,51,52,68,68,51,50,0,2,17,17,
+17,18,0,2,51,68,72,132,67,68,72,132,67,50,0,2,17,17,
+17,34,0,2,51,68,130,36,67,68,130,36,67,50,0,2,33,17,
+18,0,0,2,51,68,130,36,67,68,130,36,67,50,0,0,2,17,
+32,85,0,2,51,52,68,68,51,52,68,68,51,50,0,5,80,33,
+32,82,0,2,51,51,51,51,51,51,51,51,51,50,0,2,80,33,
+37,0,0,2,51,51,119,51,51,51,55,115,51,50,0,0,5,33,
+18,85,0,2,51,51,119,50,34,34,55,115,51,50,0,5,82,17,
+17,37,0,2,51,51,51,50,146,146,51,51,51,50,0,5,33,17,
+17,18,0,2,51,51,51,51,41,35,51,51,51,50,0,2,17,17,
+17,18,0,2,51,51,51,51,51,51,51,51,51,50,0,2,17,17,
+17,18,0,2,51,51,51,51,51,51,51,51,51,50,0,2,17,17,
+17,18,0,0,34,34,34,34,34,34,34,34,34,32,0,2,17,17,
+17,18,0,0,0,0,0,0,0,0,0,0,0,0,0,2,17,17,
+17,18,0,0,0,68,64,0,0,0,0,0,4,64,0,2,17,17,
+17,18,0,0,0,68,64,0,0,0,0,0,68,68,0,2,17,17,
+17,18,0,0,0,68,64,0,0,0,68,0,68,68,0,2,17,17,
+17,18,0,4,68,68,68,68,0,4,68,64,100,70,0,2,17,17,
+17,18,0,4,68,68,68,68,0,4,68,64,6,96,0,2,17,17,
+17,18,0,4,68,68,68,68,0,6,68,96,0,0,0,2,17,17,
+17,18,0,6,102,68,70,102,0,0,102,0,0,0,0,2,17,17,
+17,18,0,0,0,68,64,0,0,0,0,0,0,0,0,2,17,17,
+17,18,0,0,0,68,64,0,68,68,0,0,0,0,0,2,17,17,
+17,18,0,0,0,102,96,0,68,68,0,0,0,0,0,2,17,17,
+17,18,5,32,0,0,0,0,102,102,0,0,0,0,37,2,17,17,
+17,18,5,80,0,0,0,0,0,0,0,0,0,0,85,2,17,17,
+17,18,0,0,0,0,0,0,0,0,0,0,0,0,0,2,17,17,
+17,18,5,80,85,34,34,34,34,34,34,34,37,80,85,2,17,17,
+17,18,5,32,82,17,17,17,17,17,17,17,18,80,37,2,17,17,
+17,17,32,2,33,17,17,17,17,17,17,17,17,34,0,33,17,17,
+17,17,18,33,17,17,17,17,17,17,17,17,17,17,34,17,17,17,
 };