tm1637_embedded_hal::mappings

Function flip

Source
pub const fn flip(byte: u8) -> u8
Expand description

Flips the segments of a byte upside down.

Swaps the segments:

  • A and D
  • B and C
  • E and F