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:
parent
e683338a35
commit
2301f0aa43
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue