{"action":"created","issue":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/222","repository_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero","labels_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/222/comments","events_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/222/events","html_url":"https://github.com/RPi-Distro/python-gpiozero/issues/222","id":135299912,"number":222,"title":"I2C GPIOs are hardcoded","user":{"login":"lurch","id":476186,"avatar_url":"https://avatars.githubusercontent.com/u/476186?v=3","gravatar_id":"","url":"https://api.github.com/users/lurch","html_url":"https://github.com/lurch","followers_url":"https://api.github.com/users/lurch/followers","following_url":"https://api.github.com/users/lurch/following{/other_user}","gists_url":"https://api.github.com/users/lurch/gists{/gist_id}","starred_url":"https://api.github.com/users/lurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lurch/subscriptions","organizations_url":"https://api.github.com/users/lurch/orgs","repos_url":"https://api.github.com/users/lurch/repos","events_url":"https://api.github.com/users/lurch/events{/privacy}","received_events_url":"https://api.github.com/users/lurch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-22T03:03:25Z","updated_at":"2016-02-22T09:54:14Z","closed_at":null,"body":"Something I just noticed, is that there's several places where you specify that GPIOs 2 & 3 (i.e physical pins 3 & 5) have fixed hardware pullups. However for very early Rev1.0 Pis, the physical pins 3 & 5 with hardware pullups are actually connected to GPIOs 0 & 1 - see http://elinux.org/RPi_Low-level_peripherals for more info.\r\n\r\nGpioZero ought to check the board's Revision (as found in `/proc/cpuinfo` - see http://elinux.org/RPi_HardwareHistory) and use that to determine which GPIOs have the hardware-pullups.\r\n\r\nAnd of course the ComputeModule doesn't have hardware pullups on any GPIO, although the intersection of ComputeModule users and GpioZero users is likely to be very small ;-)"},"comment":{"url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/comments/187102080","html_url":"https://github.com/RPi-Distro/python-gpiozero/issues/222#issuecomment-187102080","issue_url":"https://api.github.com/repos/RPi-Distro/python-gpiozero/issues/222","id":187102080,"user":{"login":"waveform80","id":1076190,"avatar_url":"https://avatars.githubusercontent.com/u/1076190?v=3","gravatar_id":"","url":"https://api.github.com/users/waveform80","html_url":"https://github.com/waveform80","followers_url":"https://api.github.com/users/waveform80/followers","following_url":"https://api.github.com/users/waveform80/following{/other_user}","gists_url":"https://api.github.com/users/waveform80/gists{/gist_id}","starred_url":"https://api.github.com/users/waveform80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveform80/subscriptions","organizations_url":"https://api.github.com/users/waveform80/orgs","repos_url":"https://api.github.com/users/waveform80/repos","events_url":"https://api.github.com/users/waveform80/events{/privacy}","received_events_url":"https://api.github.com/users/waveform80/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T09:54:14Z","updated_at":"2016-02-22T09:54:14Z","body":"Good point"}}