![]() ![]() Pin(25, Pin.OUT).high() Program the microcontrollerĪbove you saw that simply by pressing the Execute button, the program was executed in the microcontroller without the need to program it, but what happens when we want the program to be permanent. For example, if we run these two lines on that console, we will turn on the led on the board: from machine import Pin This console allows us to execute the commands live. The central part of the program is where we will program the code that we want to execute in the Microcontroller (or upload it), and finally we have the lower area, which is a direct console with the microcontroller. Obviously this execution is volatile and will not persist in the microcontroller after restarting it. Unlike Arduino, we can execute the code directly without uploading it to the microcontroller, so we can load a file with the second button, and then press the Execute button to launch it. Lastly the stop button that will stop the code execution.In the part of the menus we can distinguish some direct access buttons, which are from left to right: We can distinguish three zones in the program: The first thing we have to know is the pinout of the microcontroller, which will help us to program it and know where we are connecting the peripherals: ![]() The technical differences between the two are as follows:Īs you can see except for small aspects, the Raspberry Pi Pico microcontroller wins by a landslide. Mainly because it far exceeds the widely used ATMega328p in several respects. Hello, today I bring you a basic tutorial on how to use a raspberry pi pico together with MicroPython, which will delight hobbyists. ![]()
0 Comments
Leave a Reply. |