From 2301f0aa43f094ee83d78d4af285b353568ec269 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Thu, 4 Jan 2018 23:45:40 -0500 Subject: [PATCH] Started mcopy_jk firmware, based off the old mcopyJK project. Will have to trigger relays to start events. Will also have to add previous absent feature of tracking the jk state via the internam microswitches. --- ino/mcopy_jk_firmware/mcopy_jk_firmware.ino | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ino/mcopy_jk_firmware/mcopy_jk_firmware.ino b/ino/mcopy_jk_firmware/mcopy_jk_firmware.ino index e69de29..5442cfe 100644 --- a/ino/mcopy_jk_firmware/mcopy_jk_firmware.ino +++ b/ino/mcopy_jk_firmware/mcopy_jk_firmware.ino @@ -0,0 +1,22 @@ + +void monitorCam () { + +} + +void monitorProj () { + +} + +void momentary (int pin, int pause) { + digitalWrite(pin, LOW); + delay(pause); //leave pause to be blocking + digitalWrite(pin, HIGH); +} + +void setDir (int pin, boolean dir) { + if (d) { + digitalWrite(pin, HIGH); + } else { + digitalWrite(pin, LOW); + } +} \ No newline at end of file