This program plays a Japanese song of this festival.
PLAY"T84L8 $GGGFGG<C>A-GGA-A-G4.R E-E-E-DE-E-GE-DDE-DC4.R <C4CDC>A-16G16E-E-GG<C>A-G4.R E-4DCDE-G<C>A-GE-DC4.R
Why do you hear the sound?
The sound is the wave of the air pressure. The wave waves your eardrum of ears.
The wave has a frequency.
The unit of frequescy is Helz(Hz). 1Hz means 1 wave per 1 second.
Mankind named 440 Hz is tone A(ラ@ja). If the frequency become doubles to 880 Hz, you will hear the higher tone A.
Reconnect the sounder to GND-OUT3, and type this command.
PWM 3,227/2,227
PWM (Pulse Width Modulation) is a IchigoJam command to output continuously pulses.
This setting is 2.27 milliseconds period (1/0.00227 = 440.529Hz).
You can select 2 base periods (OUT2-5 is group A, OUT6 is group B)
Try play 3 tones harmony on IchigoJam!