Are you still needing some help with your Pi?
There's a great deal of information about RasPi GPIOs at the RasPi Hardware Wiki: http://elinux.org/RPi_Low-level_peripherals
It should be accurate for a RasPi Model A/B and has some updates for A+/B+. I don't think it's been updated for RasPi 2 -- I think the only change from B+ is that the peripheral registers are at 0x3F000000 instead of 0x20000000.
Thanks for all your comments, I tried:
- sudo apt-get update
- sudo apt-get install python-dev
- sudo apt-get install python-rpi.gpio
in the LXTerminal without much success
(I'm not sure how good the pictures will turn out)
Any other suggestions?
I am thinking of getting a new SD and starting from scratch...
sudo apt-get -y install python-rpi.gpio
You don't really need a new SD card.. You can format the one you have and start fresh.
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install python-rpi.gpio
That should install the packages for you
I recently got a Raspberry pi and am loving it so far. The only problem I have encountered is GPIO. If I understand correctly, I need to download something to use them in python. I have tried everything that i could find without success:
$ sudo python
>>> import RPi.GPIO as GPIO
(which came up with something about the file not existing)
(which said that the website wasn't available or something)
I have tried updating/upgrading the software with
$ sudo apt-get update
(which I think came up with some errors)
sudo apt-get upgrade
(seemed to work)
What should I do? Am I doing something wrong? I "inherited" the Raspberry pi, so i don't know when it was bought and it came with a preinstalled sd card so i'm not 100% sure what it is running but I think raspbian.