Skip to content
Snippets Groups Projects
Commit 24091192 authored by schneider's avatar schneider
Browse files

demos: Update UUID usage of WS2812 demo

parent dc3afa1c
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,9 @@ from micropython import const
_IRQ_GATTS_WRITE = const(3)
WS2812_SERVICE_UUID = \
bluetooth.UUID("23230300-2342-2342-2342-234223422342")
bluetooth.UUID("23238000-2342-2342-2342-234223422342")
SET_ALL = (
bluetooth.UUID("23230301-2342-2342-2342-234223422342"),
bluetooth.UUID("23238001-2342-2342-2342-234223422342"),
bluetooth.FLAG_WRITE
)
WS2812_SERVICE = (
......
......@@ -3,9 +3,11 @@ import bluepy
import time
import colorsys
# Change this to the MAC of your card10
p = bluepy.btle.Peripheral("CA:4D:10:01:ff:64")
c = p.getCharacteristics(
uuid='23230301-2342-2342-2342-234223422342')[0]
uuid='23238001-2342-2342-2342-234223422342')[0]
hue = 0
while 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment