First ScriptO¶
Run your first script on the device.
Hello ScriptO!¶
ScriptO Studio opens with a default script already in the editor. To run your first code:
- Connect to your device (see Getting Started)
- You should see the default script tab in the editor
- Click Run in the toolbar (or press Ctrl+R / Cmd+R)
- See "Hello ScriptO!" appear in the Terminal below
That's it! You've run your first ScriptO.
Understanding the Default Script¶
The default script demonstrates basic Python output:
When you click Run, ScriptO Studio: 1. Sends the code to your connected device 2. The device executes it in the MicroPython interpreter 3. Output is streamed back and displayed in the Terminal
Try Something More¶
Now try editing the script:
print("Hello ScriptO!")
print("Device is running MicroPython")
import sys
print(f"Platform: {sys.platform}")
Click Run again to see the updated output.
Save to Device¶
To run code automatically on boot:
- Click File → New or press Ctrl+N / Cmd+N
- Name the file
main.py - Add your code
- Save (Ctrl+S / Cmd+S)
- Reboot device - code runs automatically
Using the REPL¶
For interactive development, use the Terminal directly:
- Click in the Terminal panel
- Type Python commands directly
- Press Enter to execute
Next Steps¶
- IDE Overview - Learn the interface
- Writing ScriptOs - Write more complex scripts
- File Manager - Managing device files