#[repr(u8)]pub enum PinModeId {
Show 17 variants
INPUT = 0,
OUTPUT = 1,
ANALOG = 2,
PWM = 3,
SERVO = 4,
SHIFT = 5,
I2C = 6,
ONEWIRE = 7,
STEPPER = 8,
ENCODER = 9,
SERIAL = 10,
PULLUP = 11,
SPI = 12,
SONAR = 13,
TONE = 14,
DHT = 15,
UNSUPPORTED = 127,
}
Expand description
Enumerates the possible modes for a pin.
Variants§
INPUT = 0
Same as INPUT defined in Arduino.
OUTPUT = 1
Same as OUTPUT defined in Arduino.h
ANALOG = 2
Analog pin in analogInput mode
PWM = 3
Digital pin in PWM output mode
SERVO = 4
Digital pin in Servo output mode
SHIFT = 5
shiftIn/shiftOut mode
I2C = 6
Pin included in I2C setup
ONEWIRE = 7
Pin configured for 1-wire
STEPPER = 8
Pin configured for stepper motor
ENCODER = 9
Pin configured for rotary encoders
SERIAL = 10
Pin configured for serial communication
PULLUP = 11
Enable internal pull-up resistor for pin
SPI = 12
Pin configured for SPI
SONAR = 13
Pin configured for proximity sensors
TONE = 14
Pin configured for piezzo buzzer tone generation
DHT = 15
Pin configured for DHT humidity and temperature sensors
UNSUPPORTED = 127
Pin configured to be ignored by digitalWrite and capabilityResponse
Implementations§
Trait Implementations§
impl Copy for PinModeId
impl Eq for PinModeId
impl StructuralPartialEq for PinModeId
Auto Trait Implementations§
impl Freeze for PinModeId
impl RefUnwindSafe for PinModeId
impl Send for PinModeId
impl Sync for PinModeId
impl Unpin for PinModeId
impl UnwindSafe for PinModeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more