3. Hardware Operation

3. Speaker

274 views 2019-03-12 2019-03-13 peterletintech 1

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?