there are several ways to program microcontrollers. some methods are more difficult than others and this can often depend on how much familiarity someone has with programming basics.
网上红包扫雷挂安全吗this guide is primarily for arduino developers to learn the ins and outs of using circuitpython by demonstrating use of program code in both languages. this may be a reference for people as they get comfortable in their circuitpython skills.
just as valid could be the python or circuitpython programmer who has never used arduino before. showing the code that arduino uses for various things may help to become more comfortable with the arduino environment.
Arduino takes a great deal from tools that have been in use for decades. This includes the concept of compiled网上红包扫雷挂安全吗 code. Code is written in a text editor type environment with no debugging. Then, when commanded, it is fed to a series of programs which go about taking the code and in the end compiling it from C or C++ to the machine language of the microcontroller. With a broad variety of microcontrollers on the market, the machine code is unique to that code and that processor.
if the code needs changing in arduino, the text code must be edited and submitted back through the compile process. making changes, fixing syntax errors, "dialing in" on optimum values can take a great deal of time in the compile and load processes that happen each time.
Python in general and CircuitPython specifically are interpreted网上红包扫雷挂安全吗. The code is not turned into machine code until it must be. This has many advantages. The code can give error messages during run time. Any subsequent change does not require recompiling. Loading code is as simple as copying a code text file to a flash drive. CircuitPython program development is often a fraction of the time needed for an Arduino program. The code is also highly portable to other microcontrollers.
the disadvantage to an interpreted code is speed. converting code to machine code happens on the fly so it takes time. the interpreter also uses ram and flash on the microcontroller, more than the equivalent arduino user code and libraries.
modern microcontrollers are gaining in speed, and memory capacity, often at similar or lower price points than older microcontrollers (which manufacturers will probably want to discontinue at some point). the speed penalty for using python on microcontrollers is not a concern in modern chips. and the benefits of python's flexibility and it being taught in schools puts python in the spotlight.
providing tools which help migrate arduino coders to circuitpython seem particularly appropriate in this age as this is certainly a direction the industry is moving.
you can be slow and still win. and turtles live a very long time.