36 lines
599 B
Arduino
36 lines
599 B
Arduino
|
#include "DVT_CmdHandlerClass.h"
|
||
|
#include "DVT_EncoderClass.h"
|
||
|
#include "DVT_FilamentClass.h"
|
||
|
#include "DVT_XRayClass.h"
|
||
|
|
||
|
void setup() {
|
||
|
Serial.begin(115200);
|
||
|
|
||
|
CONTROLMSG(' ');
|
||
|
CONTROLMSG("#DVT Control");
|
||
|
CONTROLMSG(' ');
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
long shuffle=0;
|
||
|
bool Status=false;
|
||
|
|
||
|
void TESTSignal(){
|
||
|
if (millis() >= shuffle){
|
||
|
Status = !Status;
|
||
|
digitalWrite(PIN_STEPMOTOR_DIRECT,Status);
|
||
|
shuffle+=10;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
void loop() {
|
||
|
while (Serial.available()) {
|
||
|
cmds.Recognize(Serial.readString());
|
||
|
}
|
||
|
XRAY.RunTime();
|
||
|
FILAMENT.Heated();
|
||
|
}
|