Skip to content

Commit

Permalink
now works on CLUE
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed May 7, 2020
1 parent dd4c8d4 commit 869e963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adafruit_ble_adafruit/humidity_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HumidityService(AdafruitService):
"""Humidity sensor value."""

uuid = AdafruitService.adafruit_service_uuid(0x700)
relative_humidity = FloatCharacteristic(
humidity = FloatCharacteristic(
uuid=AdafruitService.adafruit_service_uuid(0x701),
properties=(Characteristic.READ | Characteristic.NOTIFY),
write_perm=Attribute.NO_ACCESS,
Expand Down
5 changes: 4 additions & 1 deletion examples/ble_adafruit_clue_bluefruit.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
accel_svc.measurement_period = 100
accel_last_update = 0

NEOPIXEL_BUF_LENGTH = const(3 * 1)
# Even though the CLUE only has one NeoPixel, the Bluefruit Playground
# app is sending data for 10 pixels, so expect that many. Only the
# first pixel data will be visible, obviously.
NEOPIXEL_BUF_LENGTH = const(3 * 10)
neopixel_svc = AddressablePixelService(NEOPIXEL_BUF_LENGTH)
neopixel_buf = bytearray(NEOPIXEL_BUF_LENGTH)
# Take over NeoPixel control from clue.
Expand Down

0 comments on commit 869e963

Please sign in to comment.