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!

pokitto_icon.h

Committer:
Pokitto
Date:
2018-01-01
Revision:
0:9783d85b2a06
Child:
2:5ef3dd229260

File content as of revision 0:9783d85b2a06:

#include <stdint.h>

//Total colors 10
const uint16_t pokitto_icon_pal[] = {
63519,4195,27973,13092,57210,33972,28185,23545,54611,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,
};