Maximum sound animation test for Pokitto. BE CAREFUL, it is loud. You can also test buttons.
Dependencies: PokittoLib
Fork of HelloWorld by
A sound / buttons testing program. Put feelgood.snd on SD card (11kHz 8- bit unsigned raw sample) to hear sound
Diff: Animation.cpp
- Revision:
- 3:53db531e03aa
- Parent:
- 2:373e5a50331a
- Child:
- 9:67877833c19e
--- 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 {