Anatoli Arkhipenko 3 месяцев назад
Родитель
Сommit
2b59e09278

+ 2 - 2
examples/Scheduler_example27_PlatformIO/include/led.h

@@ -1,5 +1,5 @@
-#ifndef _TS27_LED_H
-#define _TS27_LED_H
+#ifndef _TS29_LED_H
+#define _TS29_LED_H
 
 // LED_BUILTIN  13
 #if defined( ARDUINO_ARCH_ESP32 )

+ 2 - 4
examples/Scheduler_example27_PlatformIO/include/main.h

@@ -1,7 +1,5 @@
-#ifndef _TS27_MAIN_H
-#define _TS27_MAIN_H
-
-#include <Arduino.h>
+#ifndef _TS29_MAIN_H
+#define _TS29_MAIN_H
 
 #ifdef _DEBUG_
 #define _PP(a) Serial.print(a);

+ 5 - 3
examples/Scheduler_example29_NonArduino/src/led.cpp

@@ -1,11 +1,13 @@
-#include <Arduino.h>
+// #include <Arduino.h>
 #include "led.h"
 #include "main.h"
 
 void LEDOn() {
-  digitalWrite( LED_BUILTIN, HIGH );
+  // printf("LED On\n");
+  // digitalWrite( LED_BUILTIN, HIGH );
 }
 
 void LEDOff() {
-  digitalWrite( LED_BUILTIN, LOW );
+  // printf("LED Off\n");
+  // digitalWrite( LED_BUILTIN, LOW );
 }

+ 1 - 2
examples/Scheduler_example29_NonArduino/src/main.cpp

@@ -11,7 +11,6 @@
 
 #include <TaskSchedulerDeclarations.h>
 
-#include <Arduino.h>
 #include "main.h"
 #include "led.h"
 
@@ -19,7 +18,7 @@
 Scheduler ts;
 
 
-// Comment the following 3 functions out to observer errors due to missing Arduino.h
+// Comment the following 3 functions out to observe errors due to missing Arduino.h
 unsigned long _task_millis() {
   return xTaskGetTickCount();
 }