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