Crate tm1637_embedded_hal

Source
Expand description

A platform agnostic driver to interface with the TM1637 (7-segment display) using the embedded-hal and embedded-hal-async traits.

§Features

The following features are available:

  • blocking: enables blocking functionality.
  • async: enables asynchronous functionality.
  • impl-debug: implements core::fmt::Debug for structs and enums.
  • impl-defmt-format: implements defmt::Format for structs and enums.
  • mappings: enables the mappings module.
  • formatters: enables the number formatting module.
  • demo: enables the demo module.
  • disable-checks: disables bound checks while writing to the display. When enabled, positions greater than available positions on the display will be written to the display regardless, causing more delay than needed. Enable this feature only if you are sure about the positions you are writing to.

Modules§

asynchasync
Device definition and implementation.
blockingblocking
Device definition and implementation.
demodemo
This module contains a demo implementation for the TM1637 device.
formattersformatters
Format numbers into byte arrays.
mappingsmappings
Mappings for 7-segment display characters.

Enums§

Brightness
The brightness level.