Skip to content

Commit 82bf6e8

Browse files
committed
added some debug in the artnet callback
1 parent a6f1665 commit 82bf6e8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// All Rights Reserved 2025
55
// Licensed under the GNU GPL License.
66

7-
#define DEBUG 0 // 1: DEBUG at 115200, 0: No DEBUG
7+
#define DEBUG 1 // 1: DEBUG at 115200, 0: No DEBUG
88

99
// Required libraries
1010
#include <SPI.h>
@@ -15,7 +15,7 @@
1515

1616
// Defined constants
1717
#define LED_PIN 6
18-
#define NUM_LEDS 300
18+
#define NUM_LEDS 33
1919
#define ARTNET_PORT 6454
2020
#define START_UNIVERSE 0 // we may not want to begin on universe 0 (remember that artnet is 0-indexed)
2121
#define LEDS_PER_UNIVERSE 170
@@ -55,6 +55,13 @@ void artnet_callback(
5555
universesReceived |= (1 << rel);
5656
unsigned long now = millis();
5757

58+
#if DEBUG
59+
Serial.print("Universe: ");
60+
Serial.print(metadata.universe);
61+
Serial.print(" | Received: 0x");
62+
Serial.println(universesReceived, HEX);
63+
#endif
64+
5865
if (universesReceived == ALL_UNI_MASK &&
5966
now - lastShowTime >= MIN_SHOW_INTERVAL) {
6067

0 commit comments

Comments
 (0)