2 ms·
When I use python on my microcontroller, it's really just configuring and driving peripherals like the ESP32 RMT. But I have implemented interrupt handlers tha
by dekhn 3y ago
When I use python on my microcontroller, it's really just configuring and driving peripherals like the ESP32 RMT. But I have implemented interrupt handlers that handle microsecond-level timing events in python (closed loop camera/light flash/stepper motors). The only reason this works is modern microcontrollers have tons of CPU and memory.
I had a python-based game of life that drove a 16x16 LED panel but the frame rate wasn't very good so I rewrote it in C++.
- bemusedthrow75 3y agoI think the balance will shift here a little, now that the RP2040 has made PIO a rather more mainstream concept. Access to really very high-speed, narrowly-focussed reliable IO timing in the context of an interpreted language seems to me to be a good plan. I gather other microcontrollers have had programmable I/O state machine cores in the past but I'd expect to see a lot more of them (or more documentation and coverage of the ones that exist)