Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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!
Revision 61:123aefc978a7, committed 2018-10-09
- Comitter:
- Pokitto
- Date:
- Tue Oct 09 12:07:25 2018 +0000
- Parent:
- 60:8b6a110feeea
- Child:
- 62:9bc7b8aace6f
- Commit message:
- Minor fixes;
Changed in this revision
| POKITTO_CORE/PokittoDisplay.h | Show annotated file Show diff for this revision Revisions of this file |
| POKITTO_HW/PokittoHW.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/POKITTO_CORE/PokittoDisplay.h Sun Oct 07 10:19:52 2018 +0000 +++ b/POKITTO_CORE/PokittoDisplay.h Tue Oct 09 12:07:25 2018 +0000 @@ -79,6 +79,7 @@ #define COLOR_BLUE (uint16_t)(0x001F) #define COLOR_RED (uint16_t)(0xF800) #define COLOR_GREEN (uint16_t)(0x07E0) +#define COLOR_DARKGREEN (uint16_t)(0x03E0) #define COLOR_CYAN (uint16_t)(0x07FF) #define COLOR_MAGENTA (uint16_t)(0xF81F) #define COLOR_YELLOW (uint16_t)(0xFFE0)
--- a/POKITTO_HW/PokittoHW.cpp Sun Oct 07 10:19:52 2018 +0000
+++ b/POKITTO_HW/PokittoHW.cpp Tue Oct 09 12:07:25 2018 +0000
@@ -50,6 +50,7 @@
time_t seconds = time(NULL);
Pokitto::Battery::update();
srand((unsigned int) (Pokitto::Battery::level + (seconds)));
+ for (int i=0; i < rand()*100; i++) random(100);
}
void Core::initGPIO() {