From 70221e65f574c9e1d98258f87dfd879a058a3fa0 Mon Sep 17 00:00:00 2001 From: Amerlander Date: Thu, 14 Sep 2023 12:03:59 +0200 Subject: [PATCH] turn off rgbleds 2 --- model/MicroBit.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/model/MicroBit.cpp b/model/MicroBit.cpp index c169565d..60490982 100644 --- a/model/MicroBit.cpp +++ b/model/MicroBit.cpp @@ -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.