![]() Since you saved the program as main.py it will run on the Pico automatically. If you leave the Thonny editor open it will keep the serial port open on the host, and the serial program below will not work! Paste the code into the Thonny editor window.Open Thonny and make sure it has connected to the Pico.Install it on the Pico using the Thonny editor.#use onboard LED which is controlled by Pin 25 The blinker.py script runs on the Pico, but you should rename it to main.py. Connect the host and the Picoįirst, connect the host to the Pico using a USB data lead. The guide will also tell you how to use the Thonny editor to install the necessary code on your Pico. ![]() The £10 Guide is worth buying, but if you can't wait for your copy to arrive you can download a free pdf. You'll find instructions for MicroPython installation in the official Getting Started Guide which I reviewed recently. You'll need to install MicroPython on the Pico. You can use this technique to connect a Raspberry Pi Pico to a Jetson Nano or any other member of the Jetson family. Setting up the host and the Picoįor this article I've used a Raspberry Pi as the host, but any computer running Windows, Linux or Mac OS will do so long as it has Python 3.5 or later installed. The statement can be any valid MicroPython code. It enables you to send a Python statement to the Pico and read the results.
0 Comments
Leave a Reply. |