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

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-05-02
- Revision:
- 3:401b951fdcdc
- Parent:
- 2:5ef3dd229260
File content as of revision 3:401b951fdcdc:
#include <stdint.h>
//Total colors 10
const uint16_t pokitto_icon_pal[] = {
27973,63519,4195,28185,57210,13092,33972,54611,23545,16678,
};
const uint8_t pokitto_icon[] =
{
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,
};