Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
François Revol
firmware
Commits
24091192
Commit
24091192
authored
3 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
demos: Update UUID usage of WS2812 demo
parent
dc3afa1c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demos/ble-ws2812-card10.py
+2
-2
2 additions, 2 deletions
demos/ble-ws2812-card10.py
demos/ble-ws2812-host.py
+3
-1
3 additions, 1 deletion
demos/ble-ws2812-host.py
with
5 additions
and
3 deletions
demos/ble-ws2812-card10.py
+
2
−
2
View file @
24091192
...
...
@@ -4,9 +4,9 @@ from micropython import const
_IRQ_GATTS_WRITE
=
const
(
3
)
WS2812_SERVICE_UUID
=
\
bluetooth
.
UUID
(
"
23230
3
00-2342-2342-2342-234223422342
"
)
bluetooth
.
UUID
(
"
2323
8
000-2342-2342-2342-234223422342
"
)
SET_ALL
=
(
bluetooth
.
UUID
(
"
23230
3
01-2342-2342-2342-234223422342
"
),
bluetooth
.
UUID
(
"
2323
8
001-2342-2342-2342-234223422342
"
),
bluetooth
.
FLAG_WRITE
)
WS2812_SERVICE
=
(
...
...
This diff is collapsed.
Click to expand it.
demos/ble-ws2812-host.py
+
3
−
1
View file @
24091192
...
...
@@ -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
=
'
23230
3
01-2342-2342-2342-234223422342
'
)[
0
]
uuid
=
'
2323
8
001-2342-2342-2342-234223422342
'
)[
0
]
hue
=
0
while
1
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment