Updating the HTTP API and LAN Protocol docs for the Candle Colour

Hey LIFX folks,

Any idea when the LIFX HTTP API and LAN Protocol docs will be updated to include the Candle Colour functionality?

Thanks!

Hello,

We have an overhaul of the lan documentation coming (could be a while away though) and part of that will have a page on the candle.

In the meantime, think of the candle as a tile that wraps around instead of being flat. Except instead of 8x8 it’s 6x5 and that first row is the LED on the top of the candle.

https://imgur.com/A5jfyY9

That animation is awesome. Thanks!

Can I target a Candle with Tile messages via Photons?

yeap, the tile messages are very poorly named :stuck_out_tongue:

1 Like

Probably worth a rename to Matrix messages, especially with the Tile being discontinued. :slight_smile:

Something like that. The tricky part is that the concept of a chain and the concept of a matrix are kinda mixed into the messages. Also, the naming of these messages is a pretty low concern.

Wait, what?

20 chars

so the first row we would only provide one color, then 5 rows of 5 colors (potentially)?
Should the packet include 4 null/zero color values to fill out the first row, or would the second row begin with the second color value (index 1)?

You would zero out the rest of the first row. So for example:

[
  (0, 1, 1, 3500),  (0, 0, 0, 0),     (0, 0, 0, 0),     (0, 0, 0, 0),     (0, 0, 0, 0),
  (1, 1, 1, 3500),  (2, 1, 1, 3500),  (3, 1, 1, 3500),  (4, 1, 1, 3500),  (5, 1, 1, 3500),
  (6, 1, 1, 3500),  (7, 1, 1, 3500),  (8, 1, 1, 3500),  (9, 1, 1, 3500),  (10, 1, 1, 3500),
  (11, 1, 1, 3500), (12, 1, 1, 3500), (13, 1, 1, 3500), (14, 1, 1, 3500), (15, 1, 1, 3500),
  (16, 1, 1, 3500), (17, 1, 1, 3500), (18, 1, 1, 3500), (19, 1, 1, 3500), (20, 1, 1, 3500),
  (21, 1, 1, 3500), (22, 1, 1, 3500), (23, 1, 1, 3500), (24, 1, 1, 3500), (25, 1, 1, 3500),
]
2 Likes