hybridgroup / gobot

Golang framework for robotics, drones, and the Internet of Things (IoT)
https://gobot.io
Other
8.81k stars 1.04k forks source link

platforms(adaptors): add a generic analog pin adaptor #1041

Closed gen2thomas closed 7 months ago

gen2thomas commented 7 months ago

Solved issues and/or description of the change

Introduce a library at system level for sysfs access. The library is used now for the sysfs digitalpin access, pwm pin access, and a new sysfs analog pin system library.

Based on the library - at adaptor level a new generic adaptor was introduced to access e.g. sysfs in a generic way and be able to implement drivers. Beaglebone and Edison are already converted to use the new base adaptor for its AnalogRead() capability.

Manual test

none

Checklist

If this is a new driver or adaptor: