Browse Source

turn on IR LEDs with GPIO

Thomas Buck 1 year ago
parent
commit
a134227cb9
2 changed files with 7 additions and 0 deletions
  1. 3
    0
      firmware/OpenChrono/OpenChrono.ino
  2. 4
    0
      firmware/OpenChrono/config.h

+ 3
- 0
firmware/OpenChrono/OpenChrono.ino View File

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

+ 4
- 0
firmware/OpenChrono/config.h View File

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

Loading…
Cancel
Save