From 240911926ffa08c6370ebbf9979296dabe05feba Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Wed, 29 Dec 2021 20:38:32 +0100 Subject: [PATCH] demos: Update UUID usage of WS2812 demo --- demos/ble-ws2812-card10.py | 4 ++-- demos/ble-ws2812-host.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/demos/ble-ws2812-card10.py b/demos/ble-ws2812-card10.py index 6216ea3b..977cb124 100644 --- a/demos/ble-ws2812-card10.py +++ b/demos/ble-ws2812-card10.py @@ -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 = ( diff --git a/demos/ble-ws2812-host.py b/demos/ble-ws2812-host.py index b00ee7c8..c798810a 100644 --- a/demos/ble-ws2812-host.py +++ b/demos/ble-ws2812-host.py @@ -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: -- GitLab