From e3e22b61bef0fc1e0299ad88322249ad1fe8bf54 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 3 Dec 2022 18:23:30 -0500 Subject: [PATCH] Move location of GPIO init --- functions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions.js b/functions.js index 68903fb..5851963 100644 --- a/functions.js +++ b/functions.js @@ -5,9 +5,6 @@ const fs = require('fs'); // Setup for use with the Pi's GPIO pins const gpio = require('rpi-gpio'); -// Set up GPIO 4 (pysical pin 7) as output, then call functions.auger.ready() -gpio.setup(7, gpio.DIR_OUT, functions.auger.ready()); - // The functions we'll export to be used in other files const functions = { auger: { @@ -100,5 +97,7 @@ const functions = { }, } +// Set up GPIO 4 (pysical pin 7) as output, then call functions.auger.ready() +gpio.setup(7, gpio.DIR_OUT, functions.auger.ready()); module.exports = { functions } \ No newline at end of file