Przeglądaj źródła

turn on IR LEDs with GPIO

Thomas Buck 3 lat temu
rodzic
commit
a134227cb9

+ 3
- 0
firmware/OpenChrono/OpenChrono.ino Wyświetl plik

45
 }
45
 }
46
 
46
 
47
 void setup() {
47
 void setup() {
48
+    pinMode(IR_LED_PIN, OUTPUT);
49
+    digitalWrite(IR_LED_PIN, HIGH);
50
+
48
     lcd_init();
51
     lcd_init();
49
     delay(SCREEN_TIMEOUT); // show splash screen
52
     delay(SCREEN_TIMEOUT); // show splash screen
50
 
53
 

+ 4
- 0
firmware/OpenChrono/config.h Wyświetl plik

73
 
73
 
74
 // --------------------------------------
74
 // --------------------------------------
75
 
75
 
76
+#define IR_LED_PIN 4
77
+
78
+// --------------------------------------
79
+
76
 // placeholder data for debugging purposes
80
 // placeholder data for debugging purposes
77
 
81
 
78
 #define DEBUG_TICK_COUNT 0
82
 #define DEBUG_TICK_COUNT 0

Ładowanie…
Anuluj
Zapisz