Skip to content

Commit

Permalink
Update HoodLoader2CLPUnoMegaController_NonAddressable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky-3D authored Sep 30, 2023
1 parent 4ae0f9e commit 6643f31
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/HoodLoader2CLPUnoMegaController_NonAddressable
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ CorsairLightingProtocolController cLP(&ledController, &firmware);
CorsairLightingProtocolSerial cHID(&cLP);

CRGB ledsChannel1[10];
CRGB ledsChannel2[10];

// Declare the set4PinLEDs function for Channel 1
void set4PinLEDs(const CRGB& color) {
Expand Down Expand Up @@ -60,10 +59,10 @@ void setup() {
set4PinLEDs(ledsChannel1[0]);
});

ledController.addLEDs(1, ledsChannel2, 10);
ledController.addLEDs(1, ledsChannel1, 10);
ledController.onUpdateHook(1, []() {
// use color of first LED of the second channel
set4PinLEDs2(ledsChannel2[0]);
// use color of second LED of the first channel
set4PinLEDs2(ledsChannel1[1]);
});
}

Expand Down

0 comments on commit 6643f31

Please sign in to comment.