![]() ![]() Now you can run the command regardless of what directory you are currently in. hal file for the Raspberry Pi Pico (which is just a copy of the rp2040.hal and rp2040.cpp files for now. ![]() Now make sure it is executable: sudo chmod +x /bin/picopins 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 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 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. 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. The script displays the pinout in a colour coded format showing the location of power, ground and GPIO pins. Displaying the pinout of a Raspberry Pi Pico is possible using my “picopins” script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |