Hello, My name is Taniguchi Kotaro.
HEX2BIN GAME is a simple game that measures the time to enter a binary number equal to the displayed hexadecimal number.
Remembering binary numbers is something useful.
Recommended for beginners embedded programmers.
Just try your game this afternoon Taniguchi-san. As a teacher who teach basic computer , this game is a great tool for my students to memorize hexadecimal and binary.
But I Bump to some problem, I was uploading this to my DIY Arduboy but there is no sound coming out from the game. I’ve already soldered my buzzer to Pin_speaker_1 and Pin_Speaker_2 but still no sound.
It looks like your DIY Arduboy uses a SparkFun Pro Micro. If so, what pins did you use for the speaker? You may have to tweak the ArduboyPlaytune library to work with the speaker pins that you’ve used.
Which part should I change?
I use Pin 2 and Pin 5 on the Pro Micro for the buzzer
I’ve already change the Pin Speaker in the Arduboycore.h library into this
#define PIN_SPEAKER_1 5 /< The pin number of the first lead of the speaker */ #define PIN_SPEAKER_2 2 /< The pin number of the second lead of the speaker */
I also already try using the PlayTune example for both channel and both work the same
The first 16 bytes of EEPROM (anything before the defined value EEPROM_STORAGE_SPACE_START) are reserved for system use by the library. If you reset them (specifically location EEPROM_AUDIO_ON_OFF) then yes, sound will be enabled if it was previously muted.