Uncategorized

Pico GPIO

Install GPIO problem

Ask Question

Asked today

Active today

Viewed 13 times

1

 It seems like I cannot download GPIO…

gpiorpi.gpioshared-libraries

Share

EditFollowClose 1Flag

asked 6 hours ago

Maxi 42

1111 bronze badge

 New contributor

  • 3You can’t run RPi.GPIO on Windows, it’s only compatible with Raspberry Pi hardware. – Dougie 4 hours ago
  • (1) So you are using Thonny MicroPython IDE on PC Window, to talk to Rpi Pico through a USB serial adaptor cable. Me too. (2) I repeated your experiment to try to download Rpi.GPIO to my Pico. I got the warning message something like “Rpi.GPIO is not compatible to MicroPython or Circuit Python.”, … So I did not proceed. Let me explain why. – tlfong01 5 mins ago  
  • (2) For Rpi2/2/3/4, Rpi.GPIO is built in, there is no need to download, you just import it. And for Pico, You need to do the following to start using GP: from machine import Pin. – tlfong01 1 min ago  Edit  

Add a comment

1 Answer

ActiveOldestVotes

3

You can’t install RPi.GPIO on Windows. If you want to mock GPIO calls on a PC, try gpiozero which has a mock pin interface: https://gpiozero.readthedocs.io/en/stable/api_pins.html

Share

EditFollowFlag

answered 6 hours ago

ben_nuttall

2,3021010 silver badges1313 bronze badges

Add a comment

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.