Now you can run the command regardless of what directory you are currently in. Now make sure it is executable: sudo chmod +x /bin/picopins Raspberry Pi Pico GPIO Pinout (Image credit: Tom's Hardware) 26 × multi-function 3.3V GPIO pins 2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels 8 × Programmable I/O. Note that this changes the script name from “picopins.sh” to just “picopins”. This would allow you to run “picopins” at any time and see the pinout output.Ĭopy the script using: sudo cp picopins.sh /bin/picopins Running the script is easy enough but it’s even easier if you copy it to the /bin directory. The output of picopins looks like this: Pi Pico Pinout Script Output Copy Script to Bin Directory Once downloaded navigate to the correct directory and make the script executable: chmod +x picopins.sh Then click Stop, and you can see the current environment in the Shell window. The script can be downloaded directly to your Raspberry Pi or Linux device using: wget Īlternatively you could clone my Pi Pico repository to your preferred location using: git clone Click OK and then back to Thonny, download File:Rp2-pico-20210418-v1.15.7z to the Pico. This can be a useful addition to other pinout resources such as the official Pi Pico diagram. The bash script runs from the Linux command line and I’ve tested it on Raspberry Pi OS and Ubuntu. The following picture shows the official map for the Pico version without WiFi: On the other hand, the Raspberry PI Pico W adds an Infineon CYW4343 WiFi module. You can find the complete Raspberry Pi Pico pinout. Whether you have a Raspberry Pi Pico or another RP2040-based microcontroller board, everything you need to get started is here. The Raspberry PI Pico pinout comes with a GPIO mapping completely different from common Raspberry PI boards. I find it useful if I’m coding Pico projects on my laptop or Pi 400 and need to check the location of a GPIO pin. If like me, you always mix the languages syntax, download my cheat sheet for Python here Download it now. The microcontroller board and MicroPython version should appear in the Python shell if. The script displays the pinout in a colour coded format showing the location of power, ground and GPIO pins. Click install to download and install the required files automatically. Displaying the pinout of a Raspberry Pi Pico is possible using my “picopins” script.
0 Comments
Leave a Reply. |