Expand emr mode

This commit is contained in:
Skylar Grant 2024-11-24 16:38:51 -05:00
parent a263a26c38
commit 7cb59cda01
2 changed files with 14 additions and 0 deletions

7
src/_EMR/ign_off.js Normal file
View File

@ -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);

7
src/_EMR/ign_on.js Normal file
View File

@ -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);