From 7cb59cda019572af5a2b3dee7d5d0ae11444fd87 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 24 Nov 2024 16:38:51 -0500 Subject: [PATCH] Expand emr mode --- src/_EMR/ign_off.js | 7 +++++++ src/_EMR/ign_on.js | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/_EMR/ign_off.js create mode 100644 src/_EMR/ign_on.js 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