Turn on the Music

Turn on the Music

This guide will show you how to program the buzzer on your MOTION 2350 Pro to play some melody.

The figure below shows the GPIO for the on-board Piezo Buzzer.

1. Open your editor software (for example Thonny). Select the code.py file in your drive.
2. We will let the MOTION 2350 Pro make some sound during start up and when the button on the board is pressed. So, copy and paste the following code to your editor.

3. Flash the codes to your MOTION 2350 Pro and try to press the button. Your CIRCUITPY drive should look like this:

    Library file(s) required:
    simpleio.mpy

If you don't have this file in your computer, download the lib bundle here and search for this file inside the "lib" folder.

Hardware Components

MOTION 2350 Pro - Advanced Robotics Controller for Beginners New Backorder Only