Line: 1 to 1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
Changed: | |||||||||
< < | hello | ||||||||
> > | Communicating with MicroPythonFirst steps | ||||||||
Changed: | |||||||||
< < | Article text. | ||||||||
> > | You do not know the Python? No problem! We will go through some of the basics. | ||||||||
Changed: | |||||||||
< < | -- ![]() | ||||||||
> > | Python is a very powerful, modern programming language, which is supported by a big number of code libraries, extending its capabilities. Like with natural languages, you will not master it in just a few hours. However, Python has the reputation of being easy to learn. During the lectures, we will see some of the basics programming features, just enough allowing us to work on the exercises.
Python is an interpreted language, meaning that unlike for C, C++, Pascal, Fortran ... our programs do not need to be compiled before being executed. You can talk to the interpreter through REPL, the Read, Eval, Print Loop directly. Standard Python (CPython) is quite resource hungry, resources that are not available on microcontrollers. Therefore, we use a stripped down version of Python, MicroPython, adapted to small computers. While MicroPython does not supply all the bells and whistles you find in CPython, the look and feel is almost identical and MicroPython has additional features giving access to the connected hardware.
Before going any further, connect the ESP32 to the PC through the micro USB cable.
The ESP32 CPU card has got a USB to serial interface on board which permits the PC to talk to the MicroPython interpreter. This interface is seen as a serial port on the Linux system:
![]() Communicating with the ESP32There are three programs on the PC that we can use to communicate with the ESP32:
![]() ![]() ![]() ![]() | ||||||||
Comments\ No newline at end of file | |||||||||
Added: | |||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
helloArticle text. --![]() Comments |