seven_segment

Crates.ioseven_segment
lib.rsseven_segment
version0.1.1
sourcesrc
created_at2018-12-08 15:10:40.228826
updated_at2020-03-10 10:11:39.746096
descriptionA simple driver for seven segment displays
homepage
repositoryhttps://github.com/Kixunil/seven_segment
max_upload_size
id100827
size11,752
Martin Habovštiak (Kixunil)

documentation

README

Seven segment

Simple Rust driver for 7-segment displays

About

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.

Semver trick

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.)

License

MITNFA

Commit count: 8

cargo fmt