Skip to content

[UNO Q] Add support for grayscale animation #311

@lucarin91

Description

@lucarin91

Now we only support animation with full britness, based on an old api for the UNO R4, it could be useful to also support api for grayscale animation instead.

For reference, here is the summary of the current api:

  • loadSequence(const uint32_t frames[][5]), which loads a list of frames compacted in 4 int32 plus one int32 for the frame timeout.
  • playSequence(bool loop = false), just run the loaded sequence with or without a loop

If we want to go with a compacted frame representation, we could use 10 int32 for each frame, plus one for the frame timeout. (i.e., (1383)/32 = 9.75 ~= 10).

A possible proposal is to add a new implementation of the loadSequence with support also grayscale

  • loadSequence(const uint32_t frames[][11])

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions