miguelgrinberg / microdot

The impossibly small web framework for Python and MicroPython.
MIT License
1.52k stars 118 forks source link

[Pico W] CircuitPython support vs. switching to MicroPython #51

Closed sgbaird closed 2 years ago

sgbaird commented 2 years ago

I built up a basic Pico W - compatible example for an autonomous research lab demo using CircuitPython libraries like neopixel and adafruit_as7341. If I want to use microdot, seems I'll need to switch over to running MicroPython and then use the Blinka compatibility layer to access the CircuitPython libs (and hope that what I want is supported). Does that seem like the best option? Any feedback/suggestions?

The alternative I've been trying to avoid is asking users to parse through web server setup code that they'll likely have very little familiarity with. Flask came to mind, but it was quickly obvious that it's not suited for Pico. Then came across a YouTube comment about microdot.

miguelgrinberg commented 2 years ago

Is there anything in this package that is incompatible with CircuitPython? The language is always MicroPython. As long as the low level socket support exists, Microdot should run fine.

sgbaird commented 2 years ago

@miguelgrinberg thanks, turns out it's an issue of CircuitPython not supporting Pico W yet https://github.com/adafruit/circuitpython/issues/6558. So, I'll need to set it up per MicroPython's instructions.