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:
2:968589ca3484
Parent:
0:e8b8f36b4505
Child:
3:689c3cbbef13
--- a/POKITTO_HW/HWButtons.cpp	Mon Sep 18 12:34:05 2017 +0000
+++ b/POKITTO_HW/HWButtons.cpp	Tue Sep 19 08:47:36 2017 +0000
@@ -37,8 +37,10 @@
 #include "HWButtons.h"
 #include "PokittoCore.h"
 #include "PokittoSound.h"
+#include "PokittoDisplay.h"
 
 Pokitto::Sound _s;
+Pokitto::Display _bd;
 
 using namespace mbed;
 
@@ -61,6 +63,10 @@
 void BPressed() { Pokitto::heldStates[BTN_B] = 1; }
 void BReleased() { Pokitto::heldStates[BTN_B] = 0; }
 void CPressed() {
+    _bd.enableDirectPrinting(true);
+    _bd.directcolor=COLOR_MAGENTA;
+    _bd.setCursor(1,1);
+    _bd.print("C pressed");
     Pokitto::heldStates[BTN_C] = 1;
     }
 void CReleased() { Pokitto::heldStates[BTN_C] = 0; }
@@ -81,10 +87,10 @@
     }
 void LReleased() { Pokitto::heldStates[BTN_LEFT] = 0; }
 
-void Pokitto::initButtons() {
+void Pokitto::initButtons() {  
   ABtn.fall(&AReleased);
   ABtn.rise(&APressed);
-  BBtn.fall(&BReleased);
+  /*BBtn.fall(&BReleased);
   BBtn.rise(&BPressed);
   CBtn.fall(&CReleased);
   CBtn.rise(&CPressed);
@@ -95,7 +101,7 @@
   LBtn.fall(&LReleased);
   LBtn.rise(&LPressed);
   RBtn.fall(&RReleased);
-  RBtn.rise(&RPressed);
+  RBtn.rise(&RPressed);*/
 }
 
 uint8_t Pokitto::Core::aBtn() {