4 ms·
Sure, I use micropython on the rare occasion when I'm playing with microcontroller stuff. Mostly that's hobbyist stuff, but still it's a feature I'd miss.
by traverseda 3y ago
Sure, I use micropython on the rare occasion when I'm playing with microcontroller stuff. Mostly that's hobbyist stuff, but still it's a feature I'd miss.
- MarkMarine 3y agoI’ve been using C for work on embedded for so long the idea of that is foreign to me, do you have any code in GitHub that is a good example? I’d like to read it.
- traverseda 3y agoNot really, I was working on a little web interface for the some hardware called "eduponics" but my day job has been keeping me pretty busy. Obviously micropython has a lot of downsides as compared to writing stuff in C, much higher energy requirements for one thing, but there are some nice things as well. A REPL can be really nice when you're a hobbyist using hardware that you aren't familiar with, makes it really easy to try stuff out. Performance wise you can do hard real time stuff in interrupts, as long as you don't treat it like python at all, no creating objects, if you need to do real stuff try to pass it back to a soft real-time event loop (python asyncio does a reasonable approximation of a co-operative real-time multitasking OS). You can also inline assembly directly into your functions, or some other python-like DSLs that have much better performance. I don't think anyone is using it seriously in any commercial products yet honestly, but for quickly hacking together something with some SPI peripherals it's a pretty nice environment.
- matt_trentini 3y agoThe company I work for uses MicroPython commercially, for medical devices. It's used in a growing number of commercial segments.