Function rustduino::sensors::out[][src]

pub fn out(
    datapin: usize,
    clockpin: usize,
    latchpin: usize,
    decpt: bool,
    common_anode: bool,
    value: u8
)
Expand description

Set the appropriate registers for output.

Arguments

  • datapin - a usize, to select the number of the digital pin to be used for 7-segment display data.
  • clockpin - a usize, to select the number of the digital pin to be used for clock setup.
  • latchpin - a usize, to select the number of the digital pin to be used for setup of latch adjustments.
  • decpt - a boolean, to check the decrypting value for display.
  • common_anode - a boolean, to set the common anode for the display.
  • value - a u8, to select the value which is to be displayed.