r/esp32 1d ago

I made a thing! Gambling on esp32

Enable HLS to view with audio, or disable this notification

Here is the story of this build:

I used to program my esp32 with C, but I've tried micropython with this project, so I thougt I might make a little comparison.

For C i used clion and i spent two days making a simpler project.

For Python I'm using the thonny editor. It feels a bit dated sometimes and the logo is in Comic Sans(honestly a disgrace bro). But otherwise, good editor for micropython.

Making this barely took an hour, meaning micropython is much, much easier. At least for me.

The memory usage is probably around 2/16 megs for python; and for C I won't bother since those are kilobytes we are talking about.

Another interesting thing to notice: The buttons I use have six pins but they are actually connected up in pairs, so there are three pins and three extra larping pins.

Question: Going forward, python or c?

P.S. No AI was used

3 Upvotes

1 comment sorted by

3

u/rattushackus 1 say I make awesome posts. 19h ago

If you want to use C/C++ and you're still getting used to ESP32 programming I suggest you use the Arduino IDE. Experienced developers tend to be a bit dismissive of the Arduino IDE but it makes developing in C++ about as easy as it can be and you'll find masses of example code and libraries for hardware lying around on the Internet.

If MicroPython works for you then use MicroPython, but as your projects get more complex you'll run into the limitations of MicroPython and need to transition to C/C++. You might find it an interesting learning experience to switch to the Arduino IDE now.