TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Embedded Python: MicroPython Is Amazing

22 pointsby matt_trentini11 months ago

5 comments

ranger_danger11 months ago
I just want a simple SMALL embeddable python library for my C programs... but I have yet to find a good one.
评论 #40943157 未加载
fermigier11 months ago
Yes it is. Also, not only for embedded / IoT stuff. There are some use cases where the quick startup time and low overhead of MicroPython can be useful. Unfortunately, support from mainstream distros (e.g. Debian and derivatives) is perfectible.
fake-name11 months ago
I&#x27;ve tried to use micropython a few times, and it just didn&#x27;t gel for me.<p>All the examples I&#x27;ve found seem to center around doing things interactively in the CLI. Do people write code like that? I write a lot of python and I maybe interact directly with a REPL for 5 minutes in a month.<p>There was no good tooling for managing a set of script files on the embedded device, and as soon as I had something mildly complex (on a ESP32, consuming from MQTT and writing to a serial device), I started hitting OOM errors. I rewrote a bunch of stuff to not use classes, which helped a bit, and then wound up giving up.
评论 #40943241 未加载
consp11 months ago
On the note of testing I2C devices: hook them up to any VGA or HDMI port and you are good to go with a complete OS. I even have some sensors running that way on my server for domotica needs.
评论 #40943600 未加载
th0ma511 months ago
Is memory fragmentation still a thing? I&#x27;m sure it is as there are no free lunches as it were. But I agree Micro Python is amazing just have to think about memory usage a little more maybe on smaller devices that run a long time.
评论 #40943071 未加载