MicroPython sim that runs on https://wokwi.com/pi-pico: KY-040 encoder stands in for the thumb-roller (rotate=tempo, press=start/stop, hold+rotate=track), an SSD1306 OLED for the display, and a piezo buzzer for the click. Files: diagram.json, main.py, ssd1306.py + README with the (manual) setup steps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
25 lines
989 B
JSON
25 lines
989 B
JSON
{
|
|
"version": 1,
|
|
"author": "VARASYS PolyMeter",
|
|
"editor": "wokwi",
|
|
"parts": [
|
|
{ "type": "wokwi-pi-pico", "id": "pico", "top": 0, "left": 0, "attrs": {} },
|
|
{ "type": "board-ssd1306", "id": "oled", "top": -118, "left": 200, "attrs": {} },
|
|
{ "type": "wokwi-ky-040", "id": "enc", "top": 70, "left": 250, "attrs": {} },
|
|
{ "type": "wokwi-buzzer", "id": "bz", "top": 165, "left": 130, "attrs": { "volume": "0.1" } }
|
|
],
|
|
"connections": [
|
|
[ "pico:GP0", "oled:SDA", "green", [] ],
|
|
[ "pico:GP1", "oled:SCL", "green", [] ],
|
|
[ "pico:3V3", "oled:VCC", "red", [] ],
|
|
[ "pico:GND", "oled:GND", "black", [] ],
|
|
[ "pico:GP2", "enc:CLK", "blue", [] ],
|
|
[ "pico:GP3", "enc:DT", "blue", [] ],
|
|
[ "pico:GP4", "enc:SW", "yellow",[] ],
|
|
[ "pico:3V3", "enc:VCC", "red", [] ],
|
|
[ "pico:GND", "enc:GND", "black", [] ],
|
|
[ "pico:GP5", "bz:1", "green", [] ],
|
|
[ "pico:GND", "bz:2", "black", [] ]
|
|
],
|
|
"dependencies": {}
|
|
}
|