User Manual
Code Analysis
#define NTD 
Here is the definition of the frequency of the D key, which is divided into bass, alto, and treble.
#define WHOLE 1 
#define HALF 0.5 
#define QUARTER 0.25 
#define EIGHTH 0.25 
#define SIXTEENTH 0.625 
Note: rhythm is divided into one beat, half beat, 1/4 beat, 1/8 beat, we specify a beat note time is
1;Half beat is 0.5;1/4 beat is 0.25;1/8 of 0.125.
int tune[]=... 
List the frequencies according to the spectrum.
float durt[]=... 
List the beats according to the spectrum.
delay(100*durt[x]); 
Control LED lights on and off respectively.
Demo Effect and Serial Print Result:
The buzzer will beep a tune while the LED module will flicker with same frequency.
Breakout Guide
Connect Grove LED to Seeeduino Lotus’s digital signal interface D4, connect Buzzer to
Seeeduino Lotus’s digital signal interface D5.
63
Grove Beginner Kit For Arduino®










