-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneopixel_controller.toml
82 lines (64 loc) · 1.83 KB
/
neopixel_controller.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# preset configuration file for https://github.com/Yohannfra/bluerepl
[device]
name = "BLE_NP_CONTROLLER"
address = "17f9eb2e-0267-2430-d287-091d307b6708"
autoconnect = false
[services.neopixels]
uuid = "8e72bbe5-f777-5284-7849-b4a0b2ac70d2"
[services.neopixels.characteristics.write]
uuid = "0000beb6-0000-1000-8000-00805f9b34fb"
[services.neopixels.characteristics.read]
uuid = "0000cad8-0000-1000-8000-00805f9b34fb"
[services.neopixels.characteristics.button]
uuid = "0000dac4-0000-1000-8000-00805f9b34fb"
[services.dis]
uuid = "0000180a-0000-1000-8000-00805f9b34fb"
[services.dis.characteristics.model_number]
uuid = "00002a24-0000-1000-8000-00805f9b34fb"
[services.dis.characteristics.manufacturer_name]
uuid = "00002a29-0000-1000-8000-00805f9b34fb"
[commands.read_model_number]
command_type = "read"
service = "dis"
characteristic = "model_number"
format = "text"
[commands.read_manufacturer_name]
command_type = "read"
service = "dis"
characteristic = "manufacturer_name"
format = "text"
[commands.clear]
command_type = "write"
service = "neopixels"
characteristic = "write"
payload = "0x01"
[commands.all_red]
command_type = "write"
service = "neopixels"
characteristic = "write"
payload = "0x03 0xff 0 0"
[commands.all_green]
command_type = "write"
service = "neopixels"
characteristic = "write"
payload = "0x03 0 0xff 0"
[commands.all_blue]
command_type = "write"
service = "neopixels"
characteristic = "write"
payload = "0x03 0 0 0xff"
[commands.get_pixels]
command_type = "read"
service = "neopixels"
characteristic = "read"
[functions.blink_rgb]
commands_delay_ms = [1000, 1000, 1000, 0]
commands = ["all_red", "all_green", "all_blue", "clear"]
[commands.sub_button]
command_type = "notify"
service = "neopixels"
characteristic = "button"
[commands.unsub_button]
command_type = "unsubscribe"
service = "neopixels"
characteristic = "button"