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§
- Screen
OnLed - Screen
OnLed Single - 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.