stianeikeland / go-rpio

:electric_plug: Raspberry Pi GPIO library for go-lang
MIT License
2.16k stars 221 forks source link

Orange PI support? #53

Open hoangcuongvn opened 4 years ago

hoangcuongvn commented 4 years ago

I try go-rpio with an Orange PI Lite board to toggle the BCM pin 6 but it does not work. I note that the board works fine with WiringOP and .net iot. Does go-rpio actually support Orange PI boards?

drahoslove commented 4 years ago

I am sorry, go-rpio is a low-level library - we are using register-based API of the Broadcom bcm2835 chip to control the peripherals. So this highly platform-specific and unless the Orange uses the same bcm2835 chip it won't work.

Also, the r in the name stands for raspberry .. feel free to create a fork supporting Orange PI boards and call it go-opio ;)