Module screen_on_led

Source
Expand description

Display virtual LEDs on a screen.

This creates virtual LEDs by drawing boxes on the screen. The output looks roughly like this:

    ┌─┐┌─┐┌─┐┌─┐
LED └─┘└─┘└─┘└─┘

The boxes get filled in if the LED is on.

§Caveat

The LED API is based on the GPIO API which is synchronous. Writing to a screen is not. This means LED events can easily get lost if the screen operation hasn’t finished yet.

Structs§

ScreenOnLed
ScreenOnLedSingle
A simple wrapper type to contain the index of the LED.

Traits§

LedIndexed
Mirror of the kernel::hil::led::Led trait but that supports LED indices.