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.

This commit is contained in:
mmcw-dev 2018-01-04 23:45:40 -05:00
parent e683338a35
commit 2301f0aa43
1 changed files with 22 additions and 0 deletions

View File

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