Projector component needs a cmd_mcopy_identifier function to tell gui app that it's an arduino.
This commit is contained in:
parent
b20c564bed
commit
324386096a
|
@ -40,6 +40,8 @@ void cmd (char val) {
|
||||||
debug();
|
debug();
|
||||||
} else if (val == cmd_connect) {
|
} else if (val == cmd_connect) {
|
||||||
connect();
|
connect();
|
||||||
|
} else if (val == cmd_mcopy_identifier) {
|
||||||
|
identify();
|
||||||
} else if (val == cmd_projector) {
|
} else if (val == cmd_projector) {
|
||||||
proj_start();
|
proj_start();
|
||||||
} else if (val == cmd_proj_forward) {
|
} else if (val == cmd_proj_forward) {
|
||||||
|
@ -60,6 +62,11 @@ void connect () {
|
||||||
log("connect()");
|
log("connect()");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void identify () {
|
||||||
|
Serial.println(cmd_proj_identifier);
|
||||||
|
log("identify()");
|
||||||
|
}
|
||||||
|
|
||||||
void proj_start () {
|
void proj_start () {
|
||||||
if (proj_dir) {
|
if (proj_dir) {
|
||||||
digitalWrite(proj_fwd_pin, HIGH);
|
digitalWrite(proj_fwd_pin, HIGH);
|
||||||
|
|
Loading…
Reference in New Issue