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 ...@@ -4,9 +4,9 @@ from micropython import const
_IRQ_GATTS_WRITE = const(3) _IRQ_GATTS_WRITE = const(3)
WS2812_SERVICE_UUID = \ WS2812_SERVICE_UUID = \
bluetooth.UUID("23230300-2342-2342-2342-234223422342") bluetooth.UUID("23238000-2342-2342-2342-234223422342")
SET_ALL = ( SET_ALL = (
bluetooth.UUID("23230301-2342-2342-2342-234223422342"), bluetooth.UUID("23238001-2342-2342-2342-234223422342"),
bluetooth.FLAG_WRITE bluetooth.FLAG_WRITE
) )
WS2812_SERVICE = ( WS2812_SERVICE = (
......
...@@ -3,9 +3,11 @@ import bluepy ...@@ -3,9 +3,11 @@ import bluepy
import time import time
import colorsys import colorsys
# Change this to the MAC of your card10
p = bluepy.btle.Peripheral("CA:4D:10:01:ff:64") p = bluepy.btle.Peripheral("CA:4D:10:01:ff:64")
c = p.getCharacteristics( c = p.getCharacteristics(
uuid='23230301-2342-2342-2342-234223422342')[0] uuid='23238001-2342-2342-2342-234223422342')[0]
hue = 0 hue = 0
while 1: while 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment