adafruit / Adafruit_Python_GPIO

DEPRECATED! Please use Adafruit Blinka instead (was: Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.)
MIT License
402 stars 312 forks source link

Incorrect detection of Raspberry Pi version #65

Closed ameer1234567890 closed 7 years ago

ameer1234567890 commented 7 years ago

Platform.py detects Raspberry Pi version on Kernel 4.9 incorrectly. It assumes BCM2708 as Pi 1, BCM2709 as Pi 2 and BCM2835 as Pi 3. In contrast BCM2835 is Pi 1, BCM2836 is Pi 2 and BCM2837 is Pi 3 on kernel 4.9.

arcSlayer85 commented 7 years ago

could this be why my lcd code thinks my RPi 2B needs a BeagleBone GPIO module? when it doesn't

slokhorst commented 7 years ago

My Pi 2 is listed as BCM2835 in kernel 4.9.

ladyada commented 7 years ago

btw Pi 2's now come with a Pi 3 chipset so they're essentially a Pi 3 minus BT/WiFi

tdicola commented 7 years ago

@arcSlayer85 Make sure to update the library to the latest version, #60 fixed the kernel detection issue. Check the bug for details on how to force an upgrade in case you've got an older version of the library and python doesn't want to update it.

Also the original issue from @ameer1234567890 should be resolved with #60 too. For anyone running into an error make sure to download and reinstall the GPIO library with the force option like #60 mentions.