gpio icon indicating copy to clipboard operation
gpio copied to clipboard

adc: Add adc support based on sysfs

Open rzr opened this issue 5 years ago • 4 comments

Inpired by IoT.js API

Change-Id: Ie9e006c667cbc39747c49251e41a7b25aa9d4607 Signed-off-by: Philippe Coval [email protected]

rzr avatar Sep 28 '18 07:09 rzr

Is this desired @EnotionZ or out of scope ?

rzr avatar Sep 30 '18 12:09 rzr

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.

EnotionZ avatar Sep 30 '18 22:09 EnotionZ

What do you think about preparing a new 'sysfs' module and try to keep 'gpio' one minimal ?

rzr avatar Oct 01 '18 22:10 rzr

is this project active?

rzr avatar Jul 14 '20 09:07 rzr