Flip exhaust for NC logic
This commit is contained in:
parent
51ea67b83b
commit
292d66ca33
@ -40,7 +40,7 @@
|
||||
"board": 15,
|
||||
"bcm": 22,
|
||||
"mode": "OUT",
|
||||
"defaultState": 0
|
||||
"defaultState": 1
|
||||
},
|
||||
{
|
||||
"key": "auger",
|
||||
|
@ -139,14 +139,14 @@ module.exports = {
|
||||
exhaust: {
|
||||
on() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
gpio.setPin(process.pinMap.get('exhaust').board, 1).then(() => {
|
||||
gpio.setPin(process.pinMap.get('exhaust').board, 0).then(() => {
|
||||
resolve('Exhaust powered on.');
|
||||
}).catch(e => reject(e));
|
||||
});
|
||||
},
|
||||
off() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
gpio.setPin(process.pinMap.get('exhaust').board, 0).then(() => {
|
||||
gpio.setPin(process.pinMap.get('exhaust').board, 1).then(() => {
|
||||
resolve('Exhaust powered off.');
|
||||
}).catch(e => reject(e));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user