Pokitto Community Team / Pixonia

Dependencies:   PokittoLib

Fork of AnimationTest by Pokitto Community Team

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Wed Oct 18 17:57:10 2017 +0000
Parent:
2:373e5a50331a
Child:
4:1b2348ec80ad
Commit message:
Sound working;

Changed in this revision

Animation.cpp Show annotated file Show diff for this revision Revisions of this file
My_settings.h Show annotated file Show diff for this revision Revisions of this file
PokittoLib.lib Show annotated file Show diff for this revision Revisions of this file
--- a/Animation.cpp	Wed Oct 11 22:52:35 2017 +0000
+++ b/Animation.cpp	Wed Oct 18 17:57:10 2017 +0000
@@ -181,7 +181,7 @@
         if (random(0xfff)>TALKPROBABILITY) {
                 uint8_t oldmouth = mouth;
                 mouth = random(3)+1;
-                if (oldmouth=mouth) mouth++;
+                if (oldmouth==mouth) mouth++;
                 if (mouth==5) mouth = 1;
         }
         } else {
--- a/My_settings.h	Wed Oct 11 22:52:35 2017 +0000
+++ b/My_settings.h	Wed Oct 18 17:57:10 2017 +0000
@@ -12,8 +12,11 @@
 #ifndef MY_SETTINGS_H
 #define MY_SETTINGS_H
 
-#define PROJ_HIRES 0            //1 = high resolution (220x176) , 0 = low resolution fast mode (110x88)
-#define PROJ_ENABLE_SOUND 1     // 0 = all sound functions disabled
-#define PROJ_STREAMING_MUSIC 1
+#define PROJ_HIRES              0       // 1 = high resolution (220x176) , 0 = low resolution fast mode (110x88)
+#define PROJ_ENABLE_SOUND       1       // 0 = all sound functions disabled
+#define PROJ_STREAMING_MUSIC    1       // 1 = enable streaming music from SD card
+#define PROJ_GBSOUND            1       // 1 = use Gamebuino-compatible sound interrupt (choose this or the one below)     
+#define PROJ_ENABLE_SYNTH       0       // 1 = use Rboy-compatible sound interrupt
+#define PROJ_GAMEBUINO          0       // 1 if you are making a Gamebuino-based graphics mode (84x48)
 
 #endif
\ No newline at end of file
--- a/PokittoLib.lib	Wed Oct 11 22:52:35 2017 +0000
+++ b/PokittoLib.lib	Wed Oct 18 17:57:10 2017 +0000
@@ -1,1 +1,1 @@
-http://os.mbed.com/users/Pokitto/code/PokittoLib/#ae888814cfdf
+http://os.mbed.com/users/Pokitto/code/PokittoLib/#aa12eb46aa02