Skip to content
Snippets Groups Projects
Commit 4c05beef authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Switched to Native USB Port

parent dbf9fc58
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,8 @@ char printBuf[256];
void setup() {
Serial.begin(9600);
SerialUSB.begin(9600);
//Serial.begin(9600);
//Serial.begin(460800);
//Serial.begin(128000);
Ltc6992::init();
......@@ -208,7 +209,8 @@ void loop() {
printRq = false;
/*Format: T_loop T_ool_1 T_ool_2 T_ool_3 PID P I D*/
sprintf(printBuf, "Tloop:%f,Tool1:%f,Tool2:%f,Tool3:%f,Tool4:%f,PID:%f,P:%f,I:%f,D:%f\n", data_to_temperature(adc1_data), adc2_temps[0], adc2_temps[1], adc2_temps[2], adc2_temps[3], pid_output, pid_arr[0], pid_arr[1], pid_arr[2]);
Serial.print(printBuf);
SerialUSB.print(printBuf);
//Serial.print(printBuf);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment