Created
January 20, 2023 21:59
-
-
Save sixstringsg/d75ac5be989e3bebbe6f9bf25d2f72cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!e131.isEmpty()) { | |
e131_packet_t packet; | |
e131.pull(&packet); // Pull packet from ring buffer | |
if (htons(packet.universe) == UNIVERSE) { | |
for (int i = 0; i < NUM_PIXELS; i++) { | |
int j = i * 3 + 1; | |
pixels.setPixelColor(i, packet.property_values[j], packet.property_values[j+1], packet.property_values[j+2]); | |
} | |
pixels.show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment