CHAPTER
THREE
FOR MICROPYTHON USER
This chapter is a comprehensive guide tailored specifically for users who prefer working with MicroPython. It cov-
ers various topics, including getting started with MicroPython, working with displays, generating sounds, controlling
actuators, utilizing sensors, and exploring fun projects. This chapter provides MicroPython users with the necessary
knowledge and resources to effectively use this kit and unleash their creativity in building exciting projects.
Here is the complete code package for the ESP32 Starter Kit. You can click on the following link to download it:
• SunFounder ESP32 Starter Kit
Once the download is complete, unzip the file and open the relevant example code or project files in the corresponding
software. This will allow you to browse and utilize all the code and resources provided by the kit.
1. Get Started
3.1 1.1 Introduction of MicroPython
MicroPython is a software implementation of a programming language largely compatible with Python 3, written in
C, that is optimized to run on a microcontroller.[3][4]
MicroPython consists of a Python compiler to bytecode and a runtime interpreter of that bytecode. The user is presented
with an interactive prompt (the REPL) to execute supported commands immediately. Included are a selection of core
Python libraries; MicroPython includes modules which give the programmer access to low-level hardware.
• Reference: MicroPython - Wikipedia
3.1.1 The Story Starts Here
Things changed in 2013 when Damien George launched a crowdfunding campaign (Kickstarter).
Damien was an undergraduate student at Cambridge University and an avid robotics programmer. He wanted to reduce
the world of Python from a gigabyte machine to a kilobyte. His Kickstarter campaign was to support his development
while he turned his proof of concept into a finished implementation.
MicroPython is supported by a diverse Pythonista community that has a keen interest in seeing the project succeed.
Apart from testing and supporting the code base, the developers provided tutorials, code libraries, and hardware porting,
so Damien was able to focus on other aspects of the project.
• Reference: realpython
261