Crates.io | seven_segment |
lib.rs | seven_segment |
version | 0.1.1 |
source | src |
created_at | 2018-12-08 15:10:40.228826 |
updated_at | 2020-03-10 10:11:39.746096 |
description | A simple driver for seven segment displays |
homepage | |
repository | https://github.com/Kixunil/seven_segment |
max_upload_size | |
id | 100827 |
size | 11,752 |
Simple Rust 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 embedded_hal::OutputPin
implemented.
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.
This branch is an imperfect Semver trick bridging versions 0.2.1
and 0.1.1
.
It's imperfect because not all types could have been re-exported due to
inherent merhods.
It allows you to convert the SevenSegment
struct between versions, of the
crate. It also reduces the code size by removing duplication in case of two
different versions. It's still perfectly compatible with 0.1
. (If not, file a
bug report.)
MITNFA