PiSupply / PaPiRus

Resources for PaPiRus ePaper eInk displays
https://www.pi-supply.com/product/papirus-epaper-eink-screen-hat-for-raspberry-pi/
Other
346 stars 88 forks source link

Switches not working #12

Closed chrisrichards closed 8 years ago

chrisrichards commented 8 years ago

I can't get any of the switches to work, is there any sample code? According to https://github.com/ukscone/PaPiRus-old/blob/master/notes.md they are on GPIO pins 25, 27, 28, and 29 but testing for continuity with a multimeter on these pins fails.

shawaj commented 8 years ago

@chrisrichards - switches are on pins 36, 37, 38, 40 (GPIO 16, 26, 20, 21)

Hopefully this should fix your issue with them not working?

chrisrichards commented 8 years ago

Yep they work! https://github.com/yellowfeather/PaPiRus/blob/master/bin/papirus-buttons

shawaj commented 8 years ago

@chrisrichards - you should submit a pull request for that script and we can pull it in as an extra demo

tjmgregory commented 8 years ago

I'm having a strange bug with this script, and I assume it's down to the fact I'm using a Raspberry Pi 1B and so there are fewer GPIO pins. Two Three and Four are continually written to the screen, with no change in behaviour when any of the buttons are depressed. Do you have any ideas?