Skip to content

Commit

Permalink
light up more LEDs on ring in jukeboxc
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 5, 2023
1 parent e32ccf6 commit d937ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/microbit-jukebox/led.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

0 comments on commit d937ade

Please sign in to comment.