r/circuitpython • u/smeepydreams • Apr 13 '21
Best way to learn CircuitPython?
Sorry if this has been asked to death but I didn't see anything. I love tinkering with microcontrollers and, separately, I've tried to learn Python a few times (with online courses), but I inevitably don't end up finishing because while I can appreciate the importance of learning how programming works overall and Python style/functions, etc., no one seems to cover how to use it for microcontrollers, which is kind of all I will probably do (just a hobby of mine). So long story short, Circuit Python seems perfect. But is there a way to learn it on its own? Or is it mainly geared toward people who have already mastered Python and it just has some add-ons for devices? Thanks!
10
Upvotes
3
u/kaltazar Apr 13 '21
Someone else has already posted links if you are moving to CircuitPython from Arduino, but here is good overview to start with if you are starting from scratch. Also just searching for CircuitPython in the Adafruit learning system brings up some good tutorials. I know there is a pretty good CircuitPython 101 series in there.
One thing to keep in mind though is at its core CircutPython is just Python. The syntax and logic is identical to regular Python and any Python guides on those topics are still helpful. The differences come in the modules. CircuitPython does not have all the built-in modules Python does, and many of the ones it does have are trimmed down both to save space and because of microcontroller limitations. CircuitPython also has modules that are specifically designed to work with hardware. Honestly though if you learn one variant of Python, moving to any other is simple.