Simple driver for 7-segment displays
This is a driver (encoder) for 7-segment displays. It's implemented on top of embedded-hal, so
you can use it on any platform that has pins with
The driver is very simple, only supports displays that connect directly using seven pins such as SA52-11EWA and doesn't try to do anything clever like setting all pins at once. It supports both common anode and common cathode displays.
In order to use this crate, you have to instantiate
SevenSegmentPins with your pins (see its
documentation for a diagram) and convert it by calling appropriate
Then just call
set(your_digit_here) on the result whenever you want to change the shown
Type erased definitions
Represents 7-segment display.
Pins of the 7-sement display
Marker type for common anode
Marker type for common cathode
Single digital push-pull output pin
Polarity of the common electrode.