hlp-spice2x 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hlp_spice2x-1.0.1/CHANGELOG.md +486 -0
- hlp_spice2x-1.0.1/LICENSE +674 -0
- hlp_spice2x-1.0.1/LICENSES/GPL-3.0-or-later.txt +674 -0
- hlp_spice2x-1.0.1/MANIFEST.in +25 -0
- hlp_spice2x-1.0.1/PKG-INFO +375 -0
- hlp_spice2x-1.0.1/README.md +346 -0
- hlp_spice2x-1.0.1/REUSE.toml +17 -0
- hlp_spice2x-1.0.1/hlp_spice2x/README.md +124 -0
- hlp_spice2x-1.0.1/hlp_spice2x/__init__.py +10 -0
- hlp_spice2x-1.0.1/hlp_spice2x/__main__.py +189 -0
- hlp_spice2x-1.0.1/hlp_spice2x/bridge.py +624 -0
- hlp_spice2x-1.0.1/hlp_spice2x/hlp.py +423 -0
- hlp_spice2x-1.0.1/hlp_spice2x/profile.py +231 -0
- hlp_spice2x-1.0.1/hlp_spice2x/spiceapi.py +124 -0
- hlp_spice2x-1.0.1/hlp_spice2x.egg-info/PKG-INFO +375 -0
- hlp_spice2x-1.0.1/hlp_spice2x.egg-info/SOURCES.txt +37 -0
- hlp_spice2x-1.0.1/hlp_spice2x.egg-info/dependency_links.txt +1 -0
- hlp_spice2x-1.0.1/hlp_spice2x.egg-info/entry_points.txt +2 -0
- hlp_spice2x-1.0.1/hlp_spice2x.egg-info/requires.txt +7 -0
- hlp_spice2x-1.0.1/hlp_spice2x.egg-info/top_level.txt +1 -0
- hlp_spice2x-1.0.1/profiles/README.md +187 -0
- hlp_spice2x-1.0.1/profiles/example.json +10 -0
- hlp_spice2x-1.0.1/pyproject.toml +56 -0
- hlp_spice2x-1.0.1/setup.cfg +4 -0
- hlp_spice2x-1.0.1/tests/README.md +222 -0
- hlp_spice2x-1.0.1/tests/__init__.py +9 -0
- hlp_spice2x-1.0.1/tests/boards.py +277 -0
- hlp_spice2x-1.0.1/tests/hardware_bridge.py +203 -0
- hlp_spice2x-1.0.1/tests/hardware_lights.py +348 -0
- hlp_spice2x-1.0.1/tests/hardware_probe.py +375 -0
- hlp_spice2x-1.0.1/tests/stub_server.py +112 -0
- hlp_spice2x-1.0.1/tests/test_capabilities.py +367 -0
- hlp_spice2x-1.0.1/tests/test_cli.py +224 -0
- hlp_spice2x-1.0.1/tests/test_device_errors.py +221 -0
- hlp_spice2x-1.0.1/tests/test_hardware_checks.py +335 -0
- hlp_spice2x-1.0.1/tests/test_loop_resilience.py +837 -0
- hlp_spice2x-1.0.1/tests/test_profile.py +355 -0
- hlp_spice2x-1.0.1/tests/test_spiceapi.py +132 -0
- hlp_spice2x-1.0.1/tests/test_staging.py +521 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
hlp-spice2x (spice2x to GP2040-CE Host Lighting bridge)
|
|
3
|
+
Filename: CHANGELOG.md
|
|
4
|
+
Folder: (repository root)
|
|
5
|
+
https://github.com/djGLiTCH/hlp-spice2x
|
|
6
|
+
SPDX-FileCopyrightText: (C) 2026 Jacob Simpson (DJ GLiTCH)
|
|
7
|
+
SPDX-License-Identifier: GPL-3.0-or-later
|
|
8
|
+
See LICENSES/GPL-3.0-or-later.txt at the repository root.
|
|
9
|
+
-->
|
|
10
|
+
|
|
11
|
+
# Changelog
|
|
12
|
+
|
|
13
|
+
Notable changes to this project, newest first.
|
|
14
|
+
|
|
15
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
16
|
+
versions follow [semantic versioning](https://semver.org/spec/v2.0.0.html). While
|
|
17
|
+
the major version is 0, a minor bump is where breaking changes go.
|
|
18
|
+
|
|
19
|
+
## [1.0.1] - 2026-11-23
|
|
20
|
+
|
|
21
|
+
hlp-spice2x is on PyPI. The bridge is unchanged from 1.0.0.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- pip installs the bridge from PyPI with `pip install hlp-spice2x`. Git is no
|
|
26
|
+
longer needed.
|
|
27
|
+
- The README's links to the repository's files are full URLs, so they work
|
|
28
|
+
on PyPI.
|
|
29
|
+
- The package metadata names the source, the changelog and the issues.
|
|
30
|
+
|
|
31
|
+
## [1.0.0] - 2026-11-23
|
|
32
|
+
|
|
33
|
+
This version speaks HLP 2.0, the final protocol, which GP2040-CE carries from
|
|
34
|
+
0.8.0. It is the first stable release. The lighting commands and the pages the
|
|
35
|
+
bridge reads are as in 0.9.2, so a profile needs no change.
|
|
36
|
+
|
|
37
|
+
### Breaking
|
|
38
|
+
|
|
39
|
+
- GP2040-CE 0.8.0 or later is required. Until 0.8.0 is released, the
|
|
40
|
+
`HLP_v2.0` builds carry Host Lighting for every board. Builds of the HLP
|
|
41
|
+
v2.0 release candidates are not supported.
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- gp2040ce-hostlighting 1.0 or later is required, and pip installs it from
|
|
46
|
+
PyPI. Git is needed only to install the bridge from GitHub.
|
|
47
|
+
- Firmware links point at the GP2040-CE releases, and at the `HLP_v2.0`
|
|
48
|
+
builds while no 0.8.0 or later release is out. The protocol link points at
|
|
49
|
+
`docs/host-lighting.md` in GP2040-CE.
|
|
50
|
+
- The message for a run that finds no board says Host Lighting is in
|
|
51
|
+
GP2040-CE 0.8.0 and later.
|
|
52
|
+
|
|
53
|
+
## [0.9.2] - 2026-11-14
|
|
54
|
+
|
|
55
|
+
This version speaks HLP v2.0 release candidate 18 (`HLP_v2.0-rc18`). It is a
|
|
56
|
+
pre-release. Release candidate 18 adds a flags group to page 11, the keyboard
|
|
57
|
+
mapping. Its first bit marks the buttons the keyboard interface sends as keys,
|
|
58
|
+
which leave the controller's input. The bridge does not read page 11. The
|
|
59
|
+
lighting commands and the pages the bridge reads are unchanged.
|
|
60
|
+
|
|
61
|
+
### Breaking
|
|
62
|
+
|
|
63
|
+
- HLP v2.0 release candidate 18 or later is required. Earlier candidates are
|
|
64
|
+
not supported.
|
|
65
|
+
|
|
66
|
+
### Changed
|
|
67
|
+
|
|
68
|
+
- gp2040ce-hostlighting 1.0.0rc8 reads page 11's flags. pip installs it with
|
|
69
|
+
the bridge from its `v1.0.0rc8` tag on GitHub until 1.0.0 is on PyPI, with
|
|
70
|
+
HLP v2.0 final.
|
|
71
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc18` tag.
|
|
72
|
+
|
|
73
|
+
## [0.9.1] - 2026-11-13
|
|
74
|
+
|
|
75
|
+
This version speaks HLP v2.0 release candidate 17 (`HLP_v2.0-rc17`). It is a
|
|
76
|
+
pre-release. Release candidate 17 groups page 2's input modes as the web
|
|
77
|
+
configurator does, and names four more actions on page 3, the advanced SOCD
|
|
78
|
+
slots. It adds a keyboard interface and the Lighting Report add-on, two USB
|
|
79
|
+
functions, each off by default. With either on, the lighting interface has
|
|
80
|
+
another interface number and device path, and the bridge finds the board as
|
|
81
|
+
before. The lighting commands and the pages the bridge reads are unchanged.
|
|
82
|
+
|
|
83
|
+
### Breaking
|
|
84
|
+
|
|
85
|
+
- HLP v2.0 release candidate 17 or later is required. Earlier candidates are
|
|
86
|
+
not supported.
|
|
87
|
+
|
|
88
|
+
### Added
|
|
89
|
+
|
|
90
|
+
- `hardware_probe` names each input mode's group on page 2.
|
|
91
|
+
- The README describes the Lighting Report add-on and how it and the bridge
|
|
92
|
+
share a board.
|
|
93
|
+
|
|
94
|
+
### Changed
|
|
95
|
+
|
|
96
|
+
- gp2040ce-hostlighting 1.0.0rc7 names the groups. pip installs it with the
|
|
97
|
+
bridge from its `v1.0.0rc7` tag on GitHub until 1.0.0 is on PyPI, with HLP
|
|
98
|
+
v2.0 final.
|
|
99
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc17` tag.
|
|
100
|
+
|
|
101
|
+
## [0.9.0] - 2026-11-06
|
|
102
|
+
|
|
103
|
+
This version speaks HLP v2.0 release candidate 14 (`HLP_v2.0-rc14`). It is a
|
|
104
|
+
pre-release. Release candidate 14 describes each input mode on page 2, names
|
|
105
|
+
more enums on page 3, and adds the boot holds on page 4. The lighting commands
|
|
106
|
+
and the pages the bridge reads are unchanged. In XInput Auto a bus reset after
|
|
107
|
+
a suspend makes the board leave the bus and return, and the bridge waits for it
|
|
108
|
+
as for a reboot.
|
|
109
|
+
|
|
110
|
+
### Breaking
|
|
111
|
+
|
|
112
|
+
- HLP v2.0 release candidate 14 or later is required. Earlier candidates are
|
|
113
|
+
not supported.
|
|
114
|
+
|
|
115
|
+
### Added
|
|
116
|
+
|
|
117
|
+
- `hardware_probe` prints page 2's input modes, with whether `SET_INPUT_MODE`
|
|
118
|
+
accepts each, page 4's boot holds and whether the USB host peripheral is
|
|
119
|
+
enabled. It checks them against page 1 and each other, and prints how long
|
|
120
|
+
page 3 takes to read.
|
|
121
|
+
|
|
122
|
+
### Changed
|
|
123
|
+
|
|
124
|
+
- gp2040ce-hostlighting 1.0.0rc6 reads the new pages. pip installs it with the
|
|
125
|
+
bridge from its `v1.0.0rc6` tag on GitHub until 1.0.0 is on PyPI, with HLP
|
|
126
|
+
v2.0 final.
|
|
127
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc14` tag.
|
|
128
|
+
|
|
129
|
+
## [0.8.1] - 2026-10-30
|
|
130
|
+
|
|
131
|
+
This version speaks HLP v2.0 release candidate 12 (`HLP_v2.0-rc12`). It is a
|
|
132
|
+
pre-release. Release candidate 12 adds a setting, "Allow hosts to change the
|
|
133
|
+
keyboard mapping", off by default. While it is off, HELLO does not list
|
|
134
|
+
`SET_KEYBOARD_MAPPING` (0x34). The bridge never sends 0x34, so a board is driven
|
|
135
|
+
alike with the setting on or off.
|
|
136
|
+
|
|
137
|
+
### Changed
|
|
138
|
+
|
|
139
|
+
- gp2040ce-hostlighting 1.0.0rc5 knows the setting. pip installs it with the
|
|
140
|
+
bridge from its `v1.0.0rc5` tag on GitHub until 1.0.0 is on PyPI, with HLP
|
|
141
|
+
v2.0 final.
|
|
142
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc12` tag.
|
|
143
|
+
|
|
144
|
+
## [0.8.0] - 2026-10-29
|
|
145
|
+
|
|
146
|
+
This version speaks HLP v2.0 release candidate 11 (`HLP_v2.0-rc11`). It is a
|
|
147
|
+
pre-release.
|
|
148
|
+
|
|
149
|
+
### Added
|
|
150
|
+
|
|
151
|
+
- A profile's `button` can be any name the board's page 3 gives an action or a
|
|
152
|
+
kind of light, such as `BUTTON_PRESS_TURBO`. A button, action or light a
|
|
153
|
+
later GP2040-CE firmware adds can be mapped without a new bridge.
|
|
154
|
+
- The first read of the game's lights names any profile light the game does
|
|
155
|
+
not have, such as a misspelt one, which lights nothing.
|
|
156
|
+
- A dry run names each control name that is not a short name, since only a
|
|
157
|
+
board's page 3 can check it.
|
|
158
|
+
- `hardware_probe` lists any short name the board's firmware does not have.
|
|
159
|
+
|
|
160
|
+
### Changed
|
|
161
|
+
|
|
162
|
+
- At startup, and when the board returns, the bridge looks up each control the
|
|
163
|
+
profile names on the board's page 3. It stages the control by the value the
|
|
164
|
+
board's firmware gives it, not by a value of its own. A name the firmware
|
|
165
|
+
does not have is reported and lights nothing. Page 3 is read before the
|
|
166
|
+
lights are claimed, since it takes about 0.3 s.
|
|
167
|
+
- A control name the bridge does not know is no longer a profile error. It is
|
|
168
|
+
looked up on the board, and only a name no board can give is refused.
|
|
169
|
+
- The bridge requires page 3, which every HLP v2.0 build from release candidate
|
|
170
|
+
10 lists. A board without it is refused, and the bridge names the page.
|
|
171
|
+
`hardware_probe` shows such a board as lacking page 3 and stops there.
|
|
172
|
+
- `hardware_probe` and `hardware_lights` name each action and kind of light by
|
|
173
|
+
the board's page 3.
|
|
174
|
+
|
|
175
|
+
## [0.7.0] - 2026-10-29
|
|
176
|
+
|
|
177
|
+
This version speaks HLP v2.0 release candidate 11 (`HLP_v2.0-rc11`). It is a
|
|
178
|
+
pre-release. Release candidate 11 renames page 1's group 1 and changes no byte
|
|
179
|
+
on the wire, so boards on release candidate 10 are driven as before.
|
|
180
|
+
|
|
181
|
+
### Added
|
|
182
|
+
|
|
183
|
+
- `hardware_probe` reads page 3, the firmware's names for its actions and light
|
|
184
|
+
kinds. An action or kind no profile can name is shown by that name, such as
|
|
185
|
+
`BUTTON_PRESS_TURBO` for action 32, where the probe showed `action 32`.
|
|
186
|
+
|
|
187
|
+
### Changed
|
|
188
|
+
|
|
189
|
+
- gp2040ce-hostlighting 1.0.0rc4 names page 1's group 1 Holder, where 1.0.0rc3
|
|
190
|
+
named it Controller. pip installs it with the bridge from its `v1.0.0rc4` tag
|
|
191
|
+
on GitHub until 1.0.0 is on PyPI, with HLP v2.0 final.
|
|
192
|
+
- `hardware_lights` and `hardware_probe` read the claim from the Holder group.
|
|
193
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc11` tag.
|
|
194
|
+
|
|
195
|
+
## [0.6.0] - 2026-10-29
|
|
196
|
+
|
|
197
|
+
This version speaks HLP v2.0 release candidate 10 (`HLP_v2.0-rc10`). It is a
|
|
198
|
+
pre-release.
|
|
199
|
+
|
|
200
|
+
### Breaking
|
|
201
|
+
|
|
202
|
+
- Boards on HLP v2.0 rc9 and earlier are not driven. Release candidate 10
|
|
203
|
+
moves the Lights page from page 11 to page 12, and page 1's State group grows
|
|
204
|
+
from 9 to 10 bytes. On such a board the bridge stops and names the page the
|
|
205
|
+
firmware lays out differently. Update the board to an HLP v2.0 rc10 build.
|
|
206
|
+
|
|
207
|
+
### Added
|
|
208
|
+
|
|
209
|
+
- `-v` and `--version` name the bridge's version, the gp2040ce-hostlighting
|
|
210
|
+
and Python it runs on, and the copyright, as the library's commands do.
|
|
211
|
+
- `-d` and `--debug` log to stderr at debug level, each report to and from the
|
|
212
|
+
board in hex, as the library's commands do.
|
|
213
|
+
|
|
214
|
+
### Changed
|
|
215
|
+
|
|
216
|
+
- gp2040ce-hostlighting 1.0.0rc3 speaks release candidate 10. pip installs it
|
|
217
|
+
with the bridge from its `v1.0.0rc3` tag on GitHub until 1.0.0 is on PyPI,
|
|
218
|
+
with HLP v2.0 final.
|
|
219
|
+
- The bridge's messages, the README and `hardware_probe` name the Lights page
|
|
220
|
+
as page 12.
|
|
221
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc10` tag.
|
|
222
|
+
- The help for `--board-id` and `--timeout` uses the library's words, the
|
|
223
|
+
factory board ID and the keepalive timeout.
|
|
224
|
+
- Each file opens with the header gp2040ce-hostlighting uses, naming the
|
|
225
|
+
project, the file and its folder, the repository, the copyright and the
|
|
226
|
+
licence. `LICENSE` and `LICENSES/GPL-3.0-or-later.txt` hold the FSF's plain
|
|
227
|
+
text of the licence, and `REUSE.toml` covers the example profile.
|
|
228
|
+
|
|
229
|
+
## [0.5.0] - 2026-10-26
|
|
230
|
+
|
|
231
|
+
This version is built on [gp2040ce-hostlighting][hostlighting], the reference
|
|
232
|
+
host for the Host Lighting Protocol. It is a pre-release, built against the
|
|
233
|
+
protocol's release candidate (`HLP_v2.0-rc9`).
|
|
234
|
+
|
|
235
|
+
### Breaking
|
|
236
|
+
|
|
237
|
+
- Python 3.14 or later is required. Python 3.9 to 3.13 are no longer
|
|
238
|
+
supported.
|
|
239
|
+
- Boards on HLP v2.0 rc7 and earlier are not driven. The Summary (page 8) has
|
|
240
|
+
grown from 28 to 30 bytes. Update the board to an HLP v2.0 rc9 build.
|
|
241
|
+
|
|
242
|
+
### Changed
|
|
243
|
+
|
|
244
|
+
- The protocol, the claim, the frames and the configuration pages come from
|
|
245
|
+
gp2040ce-hostlighting, which pip installs with the bridge. hidapi comes
|
|
246
|
+
through it.
|
|
247
|
+
- pip installs gp2040ce-hostlighting from its `v1.0.0rc1` tag on GitHub, which
|
|
248
|
+
needs git. The library moves to PyPI at 1.0.0, with HLP v2.0 final.
|
|
249
|
+
- Whether a chain has a white emitter is the Summary's white channel flag. It
|
|
250
|
+
was taken from the colour format.
|
|
251
|
+
- The first frame after each start, and after the board returns, clears the
|
|
252
|
+
staged frame first.
|
|
253
|
+
- Page 1 is read at least once a second, with events or without, so a change
|
|
254
|
+
whose event was lost is still seen. Without events it was read every 5 s.
|
|
255
|
+
- A configuration page read again after a change that goes unanswered is read
|
|
256
|
+
at the next poll, without a warning. One the board refuses is warned of with
|
|
257
|
+
its cause and tried again after 1 s.
|
|
258
|
+
- A give up that goes unanswered at the end of a run is warned of. The
|
|
259
|
+
keepalive timeout restores the animations.
|
|
260
|
+
- The lines for the claim are the library's: "took the lights over" and "the
|
|
261
|
+
lights are unclaimed again, so the claim was taken".
|
|
262
|
+
- A board of another protocol major, or one that does not list what the
|
|
263
|
+
bridge needs, is refused in the library's words.
|
|
264
|
+
|
|
265
|
+
### Fixed
|
|
266
|
+
|
|
267
|
+
- On HLP v2.0 rc9 builds, the Summary was misread. A change to the
|
|
268
|
+
board's lights or controls mid-run went unnoticed, and `hardware_probe`
|
|
269
|
+
reported a mismatch.
|
|
270
|
+
- A refusal (status 4) another application received is no longer taken as the
|
|
271
|
+
bridge's own. A refusal is the bridge's only when the holder and generation
|
|
272
|
+
it shows would refuse the bridge's request.
|
|
273
|
+
- An interface that is found but does not answer as a board is reported as
|
|
274
|
+
such. It was reported as no board matching an empty ID prefix.
|
|
275
|
+
|
|
276
|
+
### Removed
|
|
277
|
+
|
|
278
|
+
- The README's note on the first-boot fault of HLP v2.0 release candidates 1
|
|
279
|
+
to 4.
|
|
280
|
+
- `tests/fake_board.py`. The tests run on gp2040ce-hostlighting's model board.
|
|
281
|
+
|
|
282
|
+
## [0.4.0] - 2026-10-13
|
|
283
|
+
|
|
284
|
+
This version speaks Host Lighting Protocol 2.0 only. It is a pre-release,
|
|
285
|
+
built against the protocol's release candidate (`HLP_v2.0-rc7`).
|
|
286
|
+
|
|
287
|
+
### Breaking
|
|
288
|
+
|
|
289
|
+
- Boards on the pre-release 1.x protocol (v1.0 to v1.4) are not driven.
|
|
290
|
+
Update the board to an HLP 2.0 build, or stay on hlp-spice2x 0.3.0. A 1.x
|
|
291
|
+
board is not found by its USB usage, and the bridge reports when one is
|
|
292
|
+
attached.
|
|
293
|
+
- `--force` takes the board's lights over from another application that holds
|
|
294
|
+
them. It no longer overrides the protocol version check.
|
|
295
|
+
- `--timeout` accepts 100 to 10000 ms, the range the firmware clamps to. It
|
|
296
|
+
accepted up to 65535.
|
|
297
|
+
- A `range` is no longer refused at load for reaching past LED 99. The
|
|
298
|
+
board's addressable limit is read from the board, and the part of a range
|
|
299
|
+
past it is not sent.
|
|
300
|
+
- `TURBO`, `CASE` and `PLED1`-`PLED4` reach every light of their kind. On 1.x
|
|
301
|
+
firmware `TURBO` and a player LED lit the first such light only.
|
|
302
|
+
|
|
303
|
+
### Added
|
|
304
|
+
|
|
305
|
+
- The claim on the board's lights. The bridge claims them as `hlp-spice2x`,
|
|
306
|
+
stops if another application holds them, and renews the claim while it
|
|
307
|
+
runs. If another application takes the lights over, the bridge waits and
|
|
308
|
+
claims them again when the board is unclaimed.
|
|
309
|
+
- State changes by event. Where the board offers `SUBSCRIBE`, the bridge acts
|
|
310
|
+
on a change of the board's configuration, of the holder or of the takeover
|
|
311
|
+
when the event arrives. Otherwise it reads page 1 every 5 s.
|
|
312
|
+
- A frame the board dropped is staged again. When the takeover ends while the
|
|
313
|
+
bridge holds the claim, the frame is staged again without waiting for the
|
|
314
|
+
game to change a light.
|
|
315
|
+
- A board that leaves the bus is waited for. When another application or the
|
|
316
|
+
web configurator reboots the board, the bridge reports it, looks for the
|
|
317
|
+
same board once a second, and starts again on it when it returns. A board
|
|
318
|
+
that stops answering on a static game screen is treated the same way.
|
|
319
|
+
- `--list-boards` and the no-board error report a board speaking another
|
|
320
|
+
protocol major.
|
|
321
|
+
- `tests/test_hardware_checks.py` runs the hardware checks against the fake
|
|
322
|
+
board.
|
|
323
|
+
|
|
324
|
+
### Changed
|
|
325
|
+
|
|
326
|
+
- Profiles are unchanged, and every control name maps to the same control.
|
|
327
|
+
Names are staged by GP2040-CE's own action and light-kind values, which the
|
|
328
|
+
firmware resolves to every light carrying them.
|
|
329
|
+
- The board is gated on the capabilities `HELLO` lists, never on its minor
|
|
330
|
+
version.
|
|
331
|
+
- A frame has one answered report. Every report but the last is sent without
|
|
332
|
+
a reply, and the last carries the commit. An unacknowledged frame is sent
|
|
333
|
+
once more, then staged whole on the next change. The board is treated as
|
|
334
|
+
lost only if it does not answer `HELLO` either.
|
|
335
|
+
- The default stream rate follows the board's render rate up to 120 frames
|
|
336
|
+
per second. The limit was 60.
|
|
337
|
+
- The run ends by giving the claim up, which restores the board's animations.
|
|
338
|
+
`RELEASE` is not sent.
|
|
339
|
+
- `hardware_probe` and the lights check are rewritten for 2.0. The lights
|
|
340
|
+
check is now `python -m tests.hardware_lights`, and it claims the lights
|
|
341
|
+
as the bridge does.
|
|
342
|
+
- Firmware and protocol links point at the `HLP_v2.0-rc7` tag.
|
|
343
|
+
|
|
344
|
+
### Removed
|
|
345
|
+
|
|
346
|
+
- `hardware_precedence`. Its four steps are phase 7 of `hardware_lights`.
|
|
347
|
+
- The startup probe of each control, the wait for a light table that had not
|
|
348
|
+
been published, and the check of which lights the board skipped. HLP 2.0
|
|
349
|
+
reports its lights completely from the start and announces every change.
|
|
350
|
+
|
|
351
|
+
## [0.3.0] - 2026-09-23
|
|
352
|
+
|
|
353
|
+
Host Lighting Protocol v1.4 support. Nothing that worked under 0.2.0 changes.
|
|
354
|
+
|
|
355
|
+
### Added
|
|
356
|
+
|
|
357
|
+
- The board's control table (page 6, protocol v1.4) is read at connect and
|
|
358
|
+
whenever the LED map changes. A mapped control the board does not have is
|
|
359
|
+
reported as not on this board. It was reported as having no LED. Page 6 is
|
|
360
|
+
advisory. If it cannot be read, the bridge behaves as it did at v1.3.
|
|
361
|
+
- `hardware_probe` prints the control table, checks it against its own counts
|
|
362
|
+
and against the light table's pins, and exits non-zero on a mismatch.
|
|
363
|
+
- `--list-boards`, listing each attached board's factory ID, label, protocol
|
|
364
|
+
version and firmware without taking any over.
|
|
365
|
+
|
|
366
|
+
### Changed
|
|
367
|
+
|
|
368
|
+
- A board reporting v1.4 is driven as v1.4. It was clamped to v1.3.
|
|
369
|
+
- With several boards attached and no `--board-id`, the error names each
|
|
370
|
+
board by label as well as by ID.
|
|
371
|
+
- Firmware links point at the HLP v1.4 test builds, and protocol links at the
|
|
372
|
+
v1.4 specification by tag. They pointed at a branch that moves.
|
|
373
|
+
|
|
374
|
+
### Fixed
|
|
375
|
+
|
|
376
|
+
- `hlp_spice2x.__version__` still said 0.1.0 in 0.2.0.
|
|
377
|
+
- `hardware_lights` and `hardware_precedence` took the board over without
|
|
378
|
+
clearing the staged frame, so a pixel staged by an earlier session or phase
|
|
379
|
+
stayed lit. They now clear on every takeover, as the bridge does.
|
|
380
|
+
|
|
381
|
+
## [0.2.0] - 2026-08-18
|
|
382
|
+
|
|
383
|
+
Multi-version Host Lighting support. The bridge speaks v1.0 to v1.3, works out
|
|
384
|
+
at connect which one the attached board offers, and uses what that version
|
|
385
|
+
gives it. One profile and one command line work across all of them.
|
|
386
|
+
|
|
387
|
+
### Breaking
|
|
388
|
+
|
|
389
|
+
- A colour must be six hex digits, or eight for `RRGGBBWW`. A `0x` prefix,
|
|
390
|
+
underscores, surrounding whitespace and any other length are refused.
|
|
391
|
+
`"0xFF0000"` did not fail before. It lit blue.
|
|
392
|
+
- A `range` key holding nothing usable (`[]`, `0`, `null`, `""`) is an error.
|
|
393
|
+
The light was dropped without a message.
|
|
394
|
+
- `--fps` no longer defaults to 60. It follows the board's own render rate where
|
|
395
|
+
that is lower, so a board rendering at 40 Hz is streamed at 40. Passing `--fps`
|
|
396
|
+
still overrides it.
|
|
397
|
+
|
|
398
|
+
### Added
|
|
399
|
+
|
|
400
|
+
- The board's light table (protocol v1.1) is read. Targets were found by
|
|
401
|
+
writing to the board. The stream rate follows the board's reported render
|
|
402
|
+
rate, and every light of a control is lit where the board says a control
|
|
403
|
+
owns more than one.
|
|
404
|
+
- An `index` key in profiles (protocol v1.2) picks one light of a control.
|
|
405
|
+
`{ "button": "UP", "index": 1 }` is the second Up button on a layout with two.
|
|
406
|
+
- The white channel (protocol v1.3), through an eight-digit `RRGGBBWW` colour
|
|
407
|
+
on a GRBW or RGBW chain. The board's per-entry outcome mask is read, so a light
|
|
408
|
+
that has moved is noticed and the light table read again.
|
|
409
|
+
- Extended control names `A3`, `A4` and `E1`-`E12`, on boards whose firmware
|
|
410
|
+
reports them.
|
|
411
|
+
- `--force`, to run against a protocol major version this bridge does not
|
|
412
|
+
support. Unsupported, and for testing only.
|
|
413
|
+
- Hardware checks in `tests/`: a read-only probe of what a board reports, a
|
|
414
|
+
functional lights check, a staging-order check, and a driver that runs the
|
|
415
|
+
whole program against a fake Spice API. Each adapts to whatever board is
|
|
416
|
+
attached.
|
|
417
|
+
- `tests/README.md`, explaining what every test file is for and when to use it.
|
|
418
|
+
|
|
419
|
+
### Changed
|
|
420
|
+
|
|
421
|
+
- Capabilities are negotiated once at connect and then kept. Call sites ask
|
|
422
|
+
what the board can do, and compare no version numbers.
|
|
423
|
+
- A board reporting a newer minor version than this bridge knows is driven as
|
|
424
|
+
the newest it knows. It was refused.
|
|
425
|
+
- A board reporting a different major version is refused, with `--force` to
|
|
426
|
+
override.
|
|
427
|
+
- Target discovery sends no writes on a board that publishes a light table.
|
|
428
|
+
- The vendored protocol client grew from 314 to 1046 lines, gaining the page 5
|
|
429
|
+
light table, the full page 1 and page 2 decodes, and the `SET_RANGE_RGBW`,
|
|
430
|
+
`SET_LIGHT` and `SET_LIGHT_RGBW` commands.
|
|
431
|
+
|
|
432
|
+
### Fixed
|
|
433
|
+
|
|
434
|
+
- A board reporting protocol major version 2 or higher was accepted and then
|
|
435
|
+
driven with v1.0 assumptions. The version check was a lower bound, so anything
|
|
436
|
+
newer than v1.0 passed it.
|
|
437
|
+
- The staged frame was not cleared at startup on any board with a light table,
|
|
438
|
+
which is every board from v1.1 onward. Pixels left staged by a previous
|
|
439
|
+
session were published again by every frame and never overwritten.
|
|
440
|
+
- A dropped or refused reply to the bridge's own housekeeping ended the run. The
|
|
441
|
+
run now survives one to the five-second LED-map poll, the keepalive and the
|
|
442
|
+
per-light staging receipts. A board that has gone away still ends the run.
|
|
443
|
+
- Raw ranges were bounded by the firmware's buffer size. A profile written for
|
|
444
|
+
a larger board staged past the board's last LED without a message and lit
|
|
445
|
+
nothing there. Such a range is reported at connect.
|
|
446
|
+
- A profile that stopped fitting the board mid-session ended the run. The
|
|
447
|
+
entries that no longer fit are held back and named.
|
|
448
|
+
- Whether a light uses the white channel no longer depends on the order entries
|
|
449
|
+
are listed in the profile.
|
|
450
|
+
- Several help strings, docstrings and documented defaults described behaviour
|
|
451
|
+
the code did not have.
|
|
452
|
+
|
|
453
|
+
### Notes
|
|
454
|
+
|
|
455
|
+
Each protocol version was verified against a Haute42 COSMOX M Ultra Gen 2 by
|
|
456
|
+
flashing that firmware and running the same checks: negotiation and refusal at
|
|
457
|
+
every version, the light table, expansion by raw range on v1.1 and by ordinal
|
|
458
|
+
from v1.2, the `index` syntax end to end, the outcome mask zero-filled on real
|
|
459
|
+
v1.2 firmware and populated on v1.3, and the whole program run from its own entry
|
|
460
|
+
point at 40 fps with no unacknowledged commits.
|
|
461
|
+
|
|
462
|
+
The white channel is covered by tests only. The reference board's chain is GRB,
|
|
463
|
+
so it has no white emitter to drive.
|
|
464
|
+
|
|
465
|
+
## [0.1.0] - 2026-08-12
|
|
466
|
+
|
|
467
|
+
First tagged release. Polls spice2x's cabinet lighting API, maps named lights to
|
|
468
|
+
controls through a JSON profile, and streams frames to a GP2040-CE board over the
|
|
469
|
+
Host Lighting Protocol. Profiles name controls. The firmware resolves them
|
|
470
|
+
against each board's own LED map, so one profile works across layouts.
|
|
471
|
+
|
|
472
|
+
[hostlighting]: https://github.com/djGLiTCH/gp2040ce-hostlighting
|
|
473
|
+
[1.0.1]: https://github.com/djGLiTCH/hlp-spice2x/compare/v1.0.0...v1.0.1
|
|
474
|
+
[1.0.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.9.2...v1.0.0
|
|
475
|
+
[0.9.2]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.9.1...v0.9.2
|
|
476
|
+
[0.9.1]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.9.0...v0.9.1
|
|
477
|
+
[0.9.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.8.1...v0.9.0
|
|
478
|
+
[0.8.1]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.8.0...v0.8.1
|
|
479
|
+
[0.8.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.7.0...v0.8.0
|
|
480
|
+
[0.7.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.6.0...v0.7.0
|
|
481
|
+
[0.6.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.5.0...v0.6.0
|
|
482
|
+
[0.5.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.4.0...v0.5.0
|
|
483
|
+
[0.4.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.3.0...v0.4.0
|
|
484
|
+
[0.3.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.2.0...v0.3.0
|
|
485
|
+
[0.2.0]: https://github.com/djGLiTCH/hlp-spice2x/compare/v0.1.0...v0.2.0
|
|
486
|
+
[0.1.0]: https://github.com/djGLiTCH/hlp-spice2x/releases/tag/v0.1.0
|