UNPKG

interactive-gpio-node

Version:

25 lines (24 loc) 744 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.btn = void 0; const pin_1 = require("../constante/pin"); const presence_1 = require("../input/presence"); exports.btn = [ { pin: pin_1.Pin.raspberryPi3b.BCM22_X15, pinLED: pin_1.Pin.raspberryPi3b.BCM27_X13, label: 'vert', keyboard: 'c' } ]; //new BoutonWeb(btn) // const bouton: Bouton = new Bouton([new BoutonWeb(btn)], btn); /* bouton.keysLabel(btn[0].label).subscribe(() => { console.log("VERT"); }); */ const presence = new presence_1.PresenceDetector(pin_1.Pin.raspberryPi3b.BCM24_X18, pin_1.Pin.raspberryPi3b.BCM23_X16); presence.isPresent.subscribe((distence) => { console.log('presence', distence); });