+ 1

How micro python works

Cool

23rd Nov 2018, 6:21 AM
Anil Varma
Anil Varma - avatar
3 Respostas
+ 6
The board has a small filesystem marked as 0: /. If a microSD card is connected it will receive the 1: / mark. When PyBoard starts, it selects the file system from which it should run. The system will select a microSD card or embedded file system when the card is not present. The system will execute the boot.py file and then main.py. This second file is very important because it's where we put the code of our application. When we connect PyBoard to the computer, we get a file system that was used to start the system - we can then, for example, copy files with a new code, unmount and reset PyBoard so that the board reboots with the new code. If the red and green LEDs flash alternately, an error has occurred in the script (which can be debugged using the REPL console). If all four LEDs flash slowly, then a more serious (hardware) error has occurred and a hard-reset is needed. In addition to inserting the code into the file system of the board, you can also access the REPL Python console, ie Read Evaluate
23rd Nov 2018, 7:08 AM
Better
Better - avatar
+ 6
No problem ☺
26th Nov 2018, 6:46 AM
Better
Better - avatar
0
Cool thanks sir
26th Nov 2018, 5:51 AM
Anil Varma
Anil Varma - avatar