MicroPython
MicroPython is the text-based programming mode for Dotbot Flip. It is the best option when you want precise control over behavior and are comfortable reading and editing code directly.
When to use it
Choose MicroPython if you want to:
- build more detailed control logic
- iterate on behavior line by line
- create reusable scripted routines
- move beyond visual programming
Typical workflow
- Connect to the robot in the app.
- Open the MicroPython programming mode.
- Write or edit the script.
- Run the script on the robot.
- Observe the result and adjust the code.
Editor tools
The MicroPython editor can help with:
- autocomplete
- type checking
- error messages
- built-in function docs
- direct testing through the terminal
Good first programs
- move forward for a fixed time
- blink the LEDs in a pattern
- play a tone when the arm actuates
- combine drive and arm actions into a short routine
Why it is useful
MicroPython is well suited for users who want to understand exactly how the robot behaves and who expect to grow into more advanced control logic over time.