26 #if defined(ARDUINO_ARCH_SAMD) && (USB_PID == 0x8D21) 27 #define Serial SerialUSB 37 Serial.println(F(
"SchedulerBlinkController: started"));
38 Serial.println(F(
"0 - stop, 1 - start controller"));
41 digitalWrite(
LED, LOW);
42 Serial.print(millis());
43 Serial.println(F(
":LED off"));
53 digitalWrite(
LED, HIGH);
55 digitalWrite(
LED, LOW);
62 unsigned int ms = 100;
63 for (; ms < 1000; ms += 100) {
67 Serial.print(millis());
68 Serial.print(F(
":period = "));
71 for (; ms > 100; ms -= 100) {
75 Serial.print(millis());
76 Serial.print(F(
":period = "));
83 unsigned long start = millis();
84 await(Serial.available() != 0);
85 unsigned long stop = millis();
86 unsigned long ms = stop - start;
87 int c = Serial.read();
88 if (c ==
'0' &&
period != 0) {
92 Serial.println(F(
":LED off"));
95 else if (c ==
'1' &&
period == 0) {
99 Serial.println(F(
":LED on"));
static bool startLoop(func_t taskLoop, size_t stackSize=DEFAULT_STACK_SIZE)
volatile unsigned int period