Skip to content

Commit

Permalink
turn off rgbleds 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Sep 14, 2023
1 parent b2591d1 commit 70221e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions model/MicroBit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ int MicroBit::init()
}

// turn RGB LEDs off
// neopixel_send_buffer(uBit.io.RGB, (uint8_t[]){0, 0, 0, 0, 0, 0, 0, 0, 0}, 9);
uBit.io.RGB.setDigitalValue(0);
uint8_t rgbBuffer[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
neopixel_send_buffer(io.RGB, rgbBuffer, sizeof(rgbBuffer));
// io.RGB.setDigitalValue(0);

#if CONFIG_ENABLED(DEVICE_BLE)
// Ensure BLE bootloader settings are up to date.
Expand Down

0 comments on commit 70221e6

Please sign in to comment.