diff --git a/src/_EMR/ign_off.js b/src/_EMR/ign_off.js new file mode 100644 index 0000000..4de26ae --- /dev/null +++ b/src/_EMR/ign_off.js @@ -0,0 +1,7 @@ +// Import modules +const gpio = require('./custom_modules/VoidGPIO.js'); +const config = require('./custom_modules/config.json'); +const fn = require('./custom_modules/functions.js'); + +fn.log('Turning on igniter'); +gpio.setPin(process.pinMap.get('igniter').board, 0); \ No newline at end of file diff --git a/src/_EMR/ign_on.js b/src/_EMR/ign_on.js new file mode 100644 index 0000000..8ad3d21 --- /dev/null +++ b/src/_EMR/ign_on.js @@ -0,0 +1,7 @@ +// Import modules +const gpio = require('./custom_modules/VoidGPIO.js'); +const config = require('./custom_modules/config.json'); +const fn = require('./custom_modules/functions.js'); + +fn.log('Turning on igniter'); +gpio.setPin(process.pinMap.get('igniter').board, 1); \ No newline at end of file