@daisy-electronics/pin-converter
v1.0.1
Published
Abstraction allowing use of Raspberry Pi pin names like bcm4, gpio4, physical7, wiringPi4, etc.
Downloads
5
Readme
@daisy-electronics/pin-converter
Usage
const convert = require('@daisy-electronics/pin-converter');
someLibraryRequiringWiringPiNumbering.doSomething(convert('gpio4', 'wiringPi')); // 7
someLibraryRequiringPhysicalNumbering.doSomething(convert('wiringPi21', 'physical')); // 29
// and so on and so forth...