Function rustduino::sensors::setup [−][src]
pub fn setup(
datapin: usize,
clockpin: usize,
latchpin: usize,
decpt: bool,
common_anode: bool,
value: u8
)
Expand description
Setup for the 7-Segment Display.
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.