illumination: use comPort for test output

This commit is contained in:
Filip Ayazi 2023-03-01 04:56:41 +00:00
parent 54c34683c0
commit 225e208eae

View file

@ -98,13 +98,13 @@ void cc_test()
for (float v = 0; v <= 1; v+=0.02)
{
Serial.print(v);
Serial.print(" ");
comPort->print(v);
comPort->print(" ");
cc_set_value(v);
Serial.print(" ");
comPort->print(" ");
delay(2000);
float current = multi_read(A0, 1000)/4095.0*3.3;
Serial.println(current*1000);
comPort->println(current*1000);
}
cc_set_value(0);
@ -156,7 +156,7 @@ void cc_set_value(float val)
stepd = tdown;
}
//step up
//step current
uint8_t steps_done =0;
for (uint8_t i=16; i!=setting; i+=dir)
{
@ -166,7 +166,6 @@ void cc_set_value(float val)
delayMicroseconds(td);
steps_done++;
}
Serial.print(steps_done);
#else
comPort->println("CC LED not supported");
#endif