go-epdfuse icon indicating copy to clipboard operation
go-epdfuse copied to clipboard

How can I access the buttons?

Open benediktdertinger opened this issue 7 years ago • 1 comments

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 avatar Nov 17 '17 19:11 benediktdertinger

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.

benediktdertinger avatar Dec 03 '17 13:12 benediktdertinger