Repository navigation
rust-v1.19.0
·
28 commits
to main
since this release
Added
Verb::repaints():truefor a verb that repaints every LED, which
replaces a drawing.Supported::grid:[columns, rows]of the cells ofdraw, from
measurements.segment_gridof the device file.- A
payload:reads${frames}: a list with the base64 of each frame the
command builds.ptRealuses it to carrybleframes overlan. codec::frame::Token::SpanandToken::SpanEnd: a length field over the
bytes between them, 8 or 16 bits, either byte order.codec::frame::Token::Groups: zone indices grouped by color, one byte each.
An index named twice iscodec::Error::ArgSyntax.codec::frame::Token::Arg16Le: an integer field of two bytes, low byte
first, written${name:16le}.DeviceHandle::scene()plays aScene, andscene_named()plays one by
name or code from the cached library.Devices::scene(),Verb::Scene.scenes::fetch()stores a model's scene library in the cache folder, with
no account.scenes::load()andscenes::find()read it back.Role::Scene,Role::SceneBuiltinand the argument rolesSceneCode,
SceneParamandSceneType.Error::Scenescarriesscenes::Error: codesscene_list_missing,
unknown_scene,ambiguous_sceneandscene_fetch_failed, among others.DeviceHandle::draw()stores aDrawingof the LEDs throughrole: draw:
a cell list, or zones spread over every LED. The device keeps it.Supported::draw: the LED count ofrole: draw.Resolved::role_args()reads supplied arguments under the types of the
entry that claims a role.input::scene()reads a scene name or code from a host value.Error::is_offline(): the device does not answer now.Role::Draw: a stored drawing of the LEDs. Its arguments are marked
role: colorsandrole: zones.ArgSpec::Intcarriesdefault, andArgOverridetoo: the codec sends it
when the caller gives none.ArgSpec::default_value()reads it.codec::encode_batch()encodes several commands, and carries the frames of
consecutive commands that share an envelope in one envelope.input::verbs()readsscene, a name or a code, intoVerb::Scene. The
apply()of the Node and Python bindings takes it.
Changed
- A minor release can add an enum variant or a struct field: write a
_arm.
Seedocs/versioning.md. - Breaking:
DeviceHandle::segment()takesrole: segment_color_masked
alone.Resolution::Nativefails: usedraw()oropen_stream(). DeviceHandle::segment()paints the 15 mask groups of the H6022 and the
H61A0 overlan, in oneptRealdatagram. The colors stay.- Breaking:
DeviceHandle::open_stream()takesrole: segment_color
alone:bleandcloudfail withno_segment_command. Usesegment(). DeviceHandle::gradient()reacheslanon the H6022 and the H61A0,
through thebleframe inptReal.stream::reach()anddescribereport whatsegment()reaches: the 15
groups of the mask overlanon the H6022 and the H61A0.
Deprecated
Segments::armedis alwaysfalse:segment()arms no channel on any
mode. ReadSupported::segmentsalone.
Fixed
segment()arms no channel. A mode withrole: segment_enablesent an
arming frame and a settle wait before each masked paint.- A
lanscan reply counts as an answer for the breaker of the device: the
next command goes out with noDegradedorDowncooldown.