Table of Contents

Getting Started

This guide helps beginner CUBLOC and Python developers get started with LogicPython.

Device and Firmware Requirement

The target device must be a microcontroller board with the LogicPython firmware installed.

Install LogicPython Firmware

  1. Download the LogicPython firmware file (UF2 format), for example LogicPython_*.uf2.
  2. Disconnect the target device from USB.
  3. Press and hold the BOOTSEL button on the device.
  4. While holding BOOTSEL, connect the device to USB, then release BOOTSEL.
  5. A removable drive appears (commonly named RPI-RP2).
  6. Copy the firmware UF2 file to that drive.
  7. Wait for the copy to complete; the device will reboot automatically.
  8. Reconnect to LogicPython and verify serial/device communication works.

Browser Requirements

LogicPython requires a browser that supports all of the following web APIs:

If your browser does not support these APIs, project folder access and device communication features will not work.

What You Need

Basic Workflow

  1. Open a project folder.
  2. Edit your Python code.
  3. Run the project to deploy to the connected device.
  4. Watch output in the Serial Monitor.

Next Steps