Skip to content

Commit 4fa9759

Browse files
committed
Now uses only one NeoPixel slot for CLUE; needs 1.3.0(22) version of app
1 parent 9385476 commit 4fa9759

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/ble_adafruit_clue_bluefruit.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@
2929
accel_svc.measurement_period = 100
3030
accel_last_update = 0
3131

32-
# Even though the CLUE only has one NeoPixel, the Bluefruit Playground
33-
# app is sending data for 10 pixels, so expect that many. Only the
34-
# first pixel data will be visible, obviously.
35-
NEOPIXEL_BUF_LENGTH = const(3 * 10)
32+
# CLUE has just one board pixel. The 3 is for RGB.
33+
NEOPIXEL_BUF_LENGTH = const(3 * 1)
3634
neopixel_svc = AddressablePixelService(NEOPIXEL_BUF_LENGTH)
3735
neopixel_buf = bytearray(NEOPIXEL_BUF_LENGTH)
3836
# Take over NeoPixel control from clue.

0 commit comments

Comments
 (0)