From d937ade28a74f87fcf340915535b75eaf95d91e0 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 5 Sep 2023 15:29:15 +0000 Subject: [PATCH] light up more LEDs on ring in jukeboxc --- tools/microbit-jukebox/led.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/microbit-jukebox/led.ts b/tools/microbit-jukebox/led.ts index 2095f5dee..3ca2954f4 100644 --- a/tools/microbit-jukebox/led.ts +++ b/tools/microbit-jukebox/led.ts @@ -24,6 +24,8 @@ machine.addClientFactory(jacdac.SRV_LED, (devid, srvid) => { if (j === pattern.length) j = 0 } }) - client.setPixelColor(1, 0x00ff00) + + const n = Math.min(client.numPixels() >> 1, 3) + for (let i = 0; i < n; i++) client.setPixelColor(i, 0x000f00) return client })