Jonne Valola / PokittoLib Featured

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!

Files at this revision

API Documentation at this revision

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() {