Skip to main content

Getting Started with CircuitPython

CircuitPython is a great way to quickly and easily get started with programming microcontrollers and learn Python. In this tutorial, we will show you how to use CircuitPython on your senseBox MCU-S2.

CircuitPython Logo

Editor for CircuitPython

CircuitPython can be used with various editors. In this example, we use the CircuitPython Editor. The CircuitPython Editor is an online editor specifically developed for programming CircuitPython. You can use the editor directly in your web browser without needing to install any software.

Hello World Program​

To verify that CircuitPython works, we'll show you a simple Hello World program.

  1. Visit the CircuitPython Editor.
  2. Connect your senseBox MCU-S2 to your computer using a USB cable.
  3. Connect to your senseBox MCU-S2 via USB.
  4. Click on Connect to Device and select senseBox MCU-S2 ESP32S2 as the device. You may need to allow the editor to access your senseBox MCU-S2.
  5. Click on Select New Folder and choose the CIRCUITPY folder.
  6. You may need to allow file editing.
  7. Click on Use CIRCUITPY.
  8. Click on Open and open the code.py file.
  9. The file should already contain some example code. If not, insert the following code:
print("Hello World!")
  1. Click on Save + Run. You should now see Hello World! in the console.