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
- Import this library to online compiler (see button "import" on the right hand side
- DO NOT import mbed-src anymore, a better version is now included inside PokittoLib
- Change My_settings.h according to your project
- Start coding!
Diff: POKITTO_CORE/PokittoButtons.cpp
- Revision:
- 66:6281a40d73e6
- Parent:
- 43:6183b12dd99c
- Child:
- 68:61a4ccb0a4b6
--- a/POKITTO_CORE/PokittoButtons.cpp Sat Mar 23 19:22:35 2019 +0000 +++ b/POKITTO_CORE/PokittoButtons.cpp Sat Mar 23 20:03:34 2019 +0000 @@ -126,8 +126,10 @@ * return true if 'button' is released */ bool Buttons::released(uint8_t button) { - if (states[button] == 0xFF) + if (states[button] == 0xFF) { + states[button] = 0; // prevent continuous released state! return true; + } else return false; }