stianeikeland / go-rpio

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

Change Pin type to uint16 #67

Closed sylv-io closed 4 years ago

sylv-io commented 4 years ago

Change Pin type definition to uint16 to support GPIO expansion ICs.

e.g.: Using the kernel module gpio_pca953x for the PCA9555 IC does provide a GPIO base of 496.

Signed-off-by: Marcello Sylvester Bauer sylv@sylv.io

sylv-io commented 4 years ago

I realized this library does only work with bmc gpios (via /dev/mem or /dev/gpiomem). this change will not work.

Looks like i have to seach an other solution in my case :sweat_smile: