gpio
gpio copied to clipboard
adc: Add adc support based on sysfs
Inpired by IoT.js API
Change-Id: Ie9e006c667cbc39747c49251e41a7b25aa9d4607 Signed-off-by: Philippe Coval [email protected]
Is this desired @EnotionZ or out of scope ?
I think we should hold off merging this until we figure out a consistent way to define support for various boards as well as features outside of the standard read/write (such as adc, pwm, etc).
When someone does a var gpio = require('gpio')
(pulling package from npm) and specify the board they're using, the supported features should be available for use through that exported gpio
object. Right now this adc module is unreachable, and specifying the path is a manual process.
What do you think about preparing a new 'sysfs' module and try to keep 'gpio' one minimal ?
is this project active?