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!
Revision:
59:61d308a0b113
Parent:
54:7082c373d764
Child:
66:6281a40d73e6
--- a/POKITTO_CORE/PokittoCore.cpp	Sun Oct 07 10:06:28 2018 +0000
+++ b/POKITTO_CORE/PokittoCore.cpp	Sun Oct 07 10:10:24 2018 +0000
@@ -179,8 +179,8 @@
     uint32_t counter=0;
     uint8_t data[256];
     /** prepare the flash writing **/
-    float progress=0;
-    int opg=-1;
+    //float progress=0;
+    //int opg=-1;
     uint32_t fsize=0;
     fileEnd(); //
     fsize = fileGetPosition();
@@ -194,7 +194,7 @@
         if (counter >= fsize) {
                 break;
         }
-        opg=progress;
+        //opg=progress;
         if (fileReadBytes(&data[0],0x100)<0x100) {
                 if (fsize-counter>0x100) {
                         display.println("ERROR READING LOA.DER FILE");
@@ -271,7 +271,7 @@
     display.println("LOADER IS NOT AVAILABLE ON THE SIMULATOR. PRESS A TO RETURN.");
     #else
     uint32_t* bootinfo;
-    uint32_t bootversion=0, sdversion=0, sdjump=0;
+    uint32_t sdversion=0, sdjump=0;
     bool flashloader=false, checkforboot=true;
     //check for loa.der on SD card
     #if POK_ENABLE_LOADER_UPDATES > 0
@@ -471,7 +471,7 @@
     //sound.setMaxVol(VOLUME_HEADPHONE_MAX);
     int dstate=1;
     bool wipe = true;
-    float vol = sound.getVolume(); float tvol;
+    float vol = sound.getVolume(); 
     #ifndef POK_SIM
     vol=eeprom_read_byte((uint16_t*)EESETTINGS_VOL);
     Pokitto::Sound::globalVolume=vol;
@@ -747,7 +747,7 @@
 void Core::showLogo() {
     uint32_t now;
     uint8_t state=0; //jump directly to logo, bypass teeth
-    uint16_t counter=0, i=0;
+    uint16_t i=0;
     uint16_t sc;
     while (state < 255/6) {
     now=getTime();
@@ -1042,9 +1042,9 @@
 
 			//draw a fancy menu
 			display.textWrap = false;
-			uint16_t fc,bc;
-			fc = display.color;
-            bc = display.bgcolor;
+			//uint16_t fc,bc;
+			//fc = display.color;
+            //bc = display.bgcolor;
             if( updated ) { // update screen?
                 #if POK_SIM
                 getFirstFile(ext);