Allen-Synthesis / EuroPi

EuroPi: A reprogrammable Eurorack module based on the Raspberry Pi Pico
Creative Commons Zero v1.0 Universal
431 stars 84 forks source link

EuroPi WebREPL for Pico W - OTA script #189

Closed 303sec closed 8 months ago

303sec commented 2 years ago

It's not fully integrated into MicroPython yet for the Pico W, but it is possible to use WebREPL with the Pico W to upload/download/run code over WiFi. I've found it super useful (and fun!) to be able to live code on the EuroPi without wires, so thought I'd make a pull request to see if it would be useful for others. I expect it'll make script development a bit more convenient for some!

roryjamesallen commented 1 year ago

I haven't got a Pico W to try this with yet but this is awesome. People were wondering about wireless file management on the EuroPi from the second the W was announced so I know this PR will get a lot of love!

303sec commented 1 year ago

It should be in a recent version of micropython, you may need to update. They might have changed the name to remove the underscore on later versions, I’d need to check

On Wed, 9 Nov 2022 at 16:31, Matthew Jaskula @.***> wrote:

@.**** commented on this pull request.

In software/contrib/ota.py https://github.com/Allen-Synthesis/EuroPi/pull/189#discussion_r1018164709 :

@@ -0,0 +1,62 @@ +from time import sleep +from europi import oled, b1, din +from europi_script import EuroPiScript +import _webrepl

[question] what provides this module?

— Reply to this email directly, view it on GitHub https://github.com/Allen-Synthesis/EuroPi/pull/189#pullrequestreview-1174383027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJORZQ7P3XOOFAU4QZGDUXLWHPGWPANCNFSM6AAAAAARSNV73I . You are receiving this because you authored the thread.Message ID: @.***>

-- @303sec https://twitter.com/303sec

awonak commented 1 year ago

@303sec, I finally got my hands on a pico w, so I will be able to test this now. We also had some suggestions for handling the branching functionality of the firmware when either module is present which may help with the question @mjaskula has about the availability of _webrepl.

For reference, here was one of the suggestions:

I'm thinking it would be important to segment any pico w script away from the standard pico scripts. Perhaps those scripts can be prefixed with w- Githubissues.

  • Githubissues is a development platform for aggregating issues.