SPOKE CircuitPython Editor
Edit code.py directly on your SPOKE board.
Connect your board and select code.py to begin.
Output
Ready to edit CircuitPython code. Open code.py and connect serial to see board output.
MIDI Audio Output
Samples: Loading...
Quick Start
1. Connect SPOKE Board
Plug in your SPOKE board via USB. It should appear as "CIRCUITPY" drive.
2. Open code.py
Click "Open code.py" and navigate to your CIRCUITPY drive, then select code.py file.
3. Connect Serial (Optional)
Click "Connect Serial" to see errors and print() output from your board in real-time.
4. Edit Code
Make your changes in the editor.
5. Save to Board
Click "Save to Board" to write changes. The board will restart automatically and you'll see output in the console!
SPOKE Pin Mapping
27 Touch Pads:
GP1, GP2, GP3, GP4, GP5, GP6, GP7, GP8, GP9, GP10, GP11, GP12, GP13, GP14, GP15, GP16, GP17, GP18, GP19, GP20, GP21, GP22, GP23, GP24, GP25, GP28, VOLTAGE_MONITOR
GP1, GP2, GP3, GP4, GP5, GP6, GP7, GP8, GP9, GP10, GP11, GP12, GP13, GP14, GP15, GP16, GP17, GP18, GP19, GP20, GP21, GP22, GP23, GP24, GP25, GP28, VOLTAGE_MONITOR
Default MIDI Notes:
[98, 96, 93, 91, 88, 86, 84, 81, 79, 76, 74, 72, 69, 67, 64, 62, 60, 57, 55, 52, 50, 48, 45, 43, 40, 38, 36]
[98, 96, 93, 91, 88, 86, 84, 81, 79, 76, 74, 72, 69, 67, 64, 62, 60, 57, 55, 52, 50, 48, 45, 43, 40, 38, 36]
NeoPixels:
27 RGB LEDs on GP0. Rainbow animation plays on startup!
27 RGB LEDs on GP0. Rainbow animation plays on startup!
Tips
- Use Ctrl+S (Windows) or Cmd+S (Mac) to save
- The board restarts automatically after saving
- Connect Serial to see errors and print() statements
- Red text in console = errors, Blue = info
- Test your code with a MIDI monitor
Common Libraries
- board - Access GPIO pins
- touchio - Capacitive touch
- usb_midi - MIDI over USB
- adafruit_midi - MIDI messages
- neopixel - LED control (27 LEDs on GP0)
- rainbowio - colorwheel() for rainbow effects
- time - Delays and timing
NeoPixels:
SPOKE has 27 RGB LEDs (one per pad) on GP0. All templates include rainbow startup animation!
SPOKE has 27 RGB LEDs (one per pad) on GP0. All templates include rainbow startup animation!
Browser Compatibility:
This editor uses the File System Access API and Web Serial API. Works best in Chrome, Edge, or Opera. Not supported in Firefox or Safari.
This editor uses the File System Access API and Web Serial API. Works best in Chrome, Edge, or Opera. Not supported in Firefox or Safari.