wmarbut / go-epdfuse

A library for interacting with the PaPiRus via the repaper gratis library
GNU General Public License v2.0
16 stars 4 forks source link

How can I access the buttons? #3

Open benediktdertinger opened 6 years ago

benediktdertinger commented 6 years ago

I wrote a small program to catch data from a server and I'm able to display this data on the ePaper screen. But how can I access the buttons on my PaPiRus Zero v1.2 in go?

benediktdertinger commented 6 years ago

I found a good solution by implementing this https://github.com/stianeikeland/go-rpio lib. I got access to the PaPiRus Zero pHat Buttons using the following GPIO values:

btn1 = rpio.Pin(21)
btn2 = rpio.Pin(16)
btn3 = rpio.Pin(20)
btn4 = rpio.Pin(19)
btn5 = rpio.Pin(26)

This issue can be closed.