stianeikeland / go-rpio

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

Rotary Encoder support? #52

Closed djensenius closed 4 years ago

djensenius commented 4 years ago

Are there any plans for rotary encoder support?

drahoslove commented 4 years ago

@djensenius What kind of support would you like to see?

I believe you might be already able to use what go-rpio offers you to support your rotary encoder (with your custom implementation).

Does go-rpio lack any crucial feature which prevents you from doing so? If so please specify.

Anyway, any specific implementation to support any specific peripheral device would be too specific to be part of go-rpio. We might try to support some general interfaces, like SPI, I2C etc.. but not specific devices - that is up to the users.

djensenius commented 4 years ago

Thanks @drahoslove - this makes sense!