Module microbit_text::scrolling[][src]

Expand description

Support for scrolling sequences of 5×5 images horizontally.

Each kind of scrolling sequence is represented by a type implementing Animate (for controlling the sequence) and Render (for displaying it).

To create a new kind of scrolling sequence, make a new implementation of Scrollable. It can implement Render::brightness_at by delegating to self.current_brightness_at(). Animate will be implemented automatically.

See scrolling_text for scrolling text strings.

See scrolling_statics for scrolling arbitrary images.

Structs

Data needed to record the state of a scrolling animation.

Traits

The state of an animation.

A horizontally scrolling sequence of 5×5 images.