3. Hardware Operation

3. Speaker

45 views 2019-06-04 peterletintech 0

Hardware requirement

  • M5GO

This tutorial makes use of the speaker to play some tones forever.

 

Step 1. Set the speaker volume.

Step 2. Set a loop block to repeat forever.

Step 3. Play 5 tones with 100Hz, 200Hz, 300Hz, 400Hz, 500Hz frequency and each for 0.2s with 0.2s interval to wait for the next tone.

Step 4. Test the final code.

Step 5. Execute it and listen the result.

Was this helpful?