PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Dependents:   YATTT sd_map_test cPong SnowDemo ... more

PokittoLib

Library for programming Pokitto hardware

How to Use

  1. Import this library to online compiler (see button "import" on the right hand side
  2. DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
  3. Change My_settings.h according to your project
  4. Start coding!
Committer:
Pokitto
Date:
Wed Dec 25 23:59:52 2019 +0000
Revision:
71:531419862202
Parent:
0:e8b8f36b4505
Changed Mode2 C++ refresh code (graphical errors)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pokitto 0:e8b8f36b4505 1 #include "PokittoPalettes.h"
Pokitto 0:e8b8f36b4505 2
Pokitto 0:e8b8f36b4505 3 const unsigned char paletteGameboy[48] = {
Pokitto 0:e8b8f36b4505 4 //original grayscale
Pokitto 0:e8b8f36b4505 5 0xFF,0xFF,0xFF, //white
Pokitto 0:e8b8f36b4505 6 0xAA,0xAA,0xAA, //light gray
Pokitto 0:e8b8f36b4505 7 0x55,0x55,0x55, //dark gray
Pokitto 0:e8b8f36b4505 8 0x00,0x00,0x00, //black
Pokitto 0:e8b8f36b4505 9 //optimum color output
Pokitto 0:e8b8f36b4505 10 0xed,0xed,0xff, //white
Pokitto 0:e8b8f36b4505 11 0xff,0xcc,0xc1, //light gray
Pokitto 0:e8b8f36b4505 12 0xff,0x00,0x00, //dark gray
Pokitto 0:e8b8f36b4505 13 0x00,0x89,0x01, //black
Pokitto 0:e8b8f36b4505 14 //red-green contrast
Pokitto 0:e8b8f36b4505 15 //0xed,0xFf,0xea, //white edffea
Pokitto 0:e8b8f36b4505 16 //0xff,0xb1,0xe2, //light gray efa1ce ffb1e2
Pokitto 0:e8b8f36b4505 17 //0xb6,0x00,0x92, //dark gray b60092
Pokitto 0:e8b8f36b4505 18 //0x5f,0x66,0x00, //black 5f6600
Pokitto 0:e8b8f36b4505 19
Pokitto 0:e8b8f36b4505 20 //cyan-pink contrast
Pokitto 0:e8b8f36b4505 21 //0xea,0xff,0xfd, //white
Pokitto 0:e8b8f36b4505 22 //0xff,0xb1,0xe3, //light gray
Pokitto 0:e8b8f36b4505 23 //0xb6,0x00,0x92, //dark gray
Pokitto 0:e8b8f36b4505 24 //0x5a,0x1b,0x00, //black
Pokitto 0:e8b8f36b4505 25
Pokitto 0:e8b8f36b4505 26 // sunset
Pokitto 0:e8b8f36b4505 27 //0xff,0xa5,0x6e, //white
Pokitto 0:e8b8f36b4505 28 //0xf5,0xb6,0xbb, //light gray
Pokitto 0:e8b8f36b4505 29 //0xdb,0x28,0x5a, //dark gray
Pokitto 0:e8b8f36b4505 30 //0x91,0x34,0x00, //black
Pokitto 0:e8b8f36b4505 31 //cotton sky
Pokitto 0:e8b8f36b4505 32 0x6f,0xe5,0xff, //white
Pokitto 0:e8b8f36b4505 33 0xff,0xc8,0xb6, //light gray
Pokitto 0:e8b8f36b4505 34 0xff,0x03,0x54, //dark gray
Pokitto 0:e8b8f36b4505 35 0x12,0x00,0x38, //black
Pokitto 0:e8b8f36b4505 36 // beautiful yellow,pink,red,brown color contrast
Pokitto 0:e8b8f36b4505 37 0xFF,0xF2,0x91, //white fff291
Pokitto 0:e8b8f36b4505 38 0xf7,0xe0,0xd1, //light gray f7e0d1
Pokitto 0:e8b8f36b4505 39 0xff,0x2d,0x61, //dark gray ff2d61
Pokitto 0:e8b8f36b4505 40 0x72,0x58,0x0b, //black 72580b
Pokitto 0:e8b8f36b4505 41 };
Pokitto 0:e8b8f36b4505 42