node-dht-sensor
node-dht-sensor copied to clipboard
Different mapping options
sensor.initialize({
// ... options along the way,
mapping: 'physical' // 'gpio', 'bcm', 'wiringPi' could be supported for example (bcm === gpio)
});
The default option would be 'gpio' for compatibility. Also I don't know if it should be done on JS or C++ side.
I like the idea. I'd prefer to have the mapping done in the JS layer. I'd like to avoid growing the C/C++ layer unless there's a good reason for it (e.g. performance, low-level GPIO access, etc).
Agreed.