pinMode()
Initialization function
The following functions are used to operate General Purpose Digital IO (DIO).
pinMode()
digitalWrite()
digitalRead()
attachIntDio()
detachIntDio()
Definition | Name |
---|---|
const uint8_t PIN_DIGITAL::DIO0 .. 19 | DIO pins 0 to 19 |
const uint8_t PIN_DIGITAL::DO0 .. 1 | DO pins 0,1 |
The following enumerated values are handled by the type E_PIN_MODE
.
Definition | Pull-up | Name |
---|---|---|
PIN_MODE::INPUT | No | Input |
PIN_MODE::OUTPUT | No | Output |
PIN_MODE::INPUT_PULLUP | Yes | Input with Pull-up |
PIN_MODE::OUTPUT_INIT_HIGH | No | Output (initial state HIGH) |
PIN_MODE::OUTPUT_INIT_LOW | No | Output (initial state LOW) |
PIN_MODE::WAKE_FALLING | No | Input, wake pin, falling edge |
PIN_MODE::WAKE_RISING | No | Input, wake pin, rising edge |
PIN_MODE::WAKE_FALLING_PULLUP | Yes | Input, wake pin, falling edge with pull-up |
PIN_MODE::WAKE_RISING_PULLUP | Yes | Input, wake pin, rising edge with pull-up |
PIN_MODE::DISABLE_OUTPUT | Yes | Return to input state |
The following enumerated values are handled by the type E_PIN_MODE
.
Definition | Name |
---|---|
PIN_MODE::OUTPUT | Output |
PIN_MODE::OUTPUT_INIT_HIGH | Output (initial state HIGH) |
PIN_MODE::OUTPUT_INIT_LOW | Output (initial state LOW) |
PIN_MODE::DISABLE_OUTPUT | Stop output setting |
The following enumerated values are handled by the type E_PIN_STATE
.
Definition | Value | Name |
---|---|---|
PIN_STATE::HIGH | 1 | HIGH level (=Vcc level) |
PIN_STATE::LOW | 0 | LOW level (=GND level) |
The following enumerated values are handled by the type E_PIN_INT_MODE
.
Definition | Name |
---|---|
PIN_INT_MODE::FALLING | Falling edge |
PIN_INT_MODE::RISING | Rising edge |
Initialization function
Digital output function
Digital input function
Function to register a DIO interrupt handler
Function to unregister a DIO interrupt handler
Digital input function (batch)