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.
Dependencies: PokittoLib
Fork of AnimationTest by
Revision 3:53db531e03aa, committed 2017-10-18
- 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
--- 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
