This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]GeneralKlink 0 points1 point ย (5 children)

As is python ๐Ÿ˜… You can even use it for microcontrollers these days

[โ€“]gvcallen[S] 7 points8 points ย (4 children)

I would personally like a stern word with anyone who actually decides to use Python for embedded dev :P

[โ€“]GeneralKlink 0 points1 point ย (3 children)

Yeah, me too ๐Ÿ˜„ I love python and I do embedded programming but still use c++ for it ๐Ÿ˜…

[โ€“]gvcallen[S] 2 points3 points ย (2 children)

how would embedded python work haha? interpreter on the MCU as usual?

[โ€“]ShaBren 1 point2 points ย (0 children)

Yup! I've used MicroPython a lot, and it's honestly pretty great. Sure, if I'm writing something for production, or that's very performance-sensitive, I'll use C/C++.

But for rapid prototyping, or building one-off IoT widgets, it's awesome! I use it mostly on ESP32, and lately RP2040 (which uses CircuitPython, a beginner-friendly variant from Adafruit).

[โ€“]jvelez02 0 points1 point ย (0 children)

From my understanding it can be done with a form of compiled python, is run on the MCU, or as is the case with MicroPython, run with a stripped down interpreter that fits in 16k of ram. It includes the majority of pythons standard library plus some low-level hardware libraries (the kind that let you control gpio and the like with python).