DIO General purpose IO
API for DIO (General-purpose digital IO)
The following functions are used for general-purpose digital IO (DIO) operations.
pinMode()
digitalWrite()
digitalRead()
attachIntDio()
detachIntDio()
Constants
Pin name and number
Definition | Name |
---|---|
| DIO pins 0 to 19 |
| DO pin 0,1 |
Mode of pin(DIO0..19)
The following enumeration values are handled with the type name E_PIN_MODE
.
Definition | Pull-up | Name |
---|---|---|
| None | Input |
| None | Output |
| Yes | Input |
| None | Output(init HIGH) |
| None | Output(init LOW) |
| None | Input, raised pin, falling |
| None | Input, rising pin, rising |
| Yes | Input, raised pin, falling |
| Yes | Input, rising pin, rising |
| Yes | return to the input state |
Mode of the pin (DO0,1)
The following enumeration values are handled with the type name E_PIN_MODE
.
Definition | Name |
---|---|
| Contribute |
| Output (initial state HIGH) |
| Output (initial state LOW) |
| Stop setting output |
pin_state
The following enumeration values are handled with the type name E_PIN_STATE
.
Definition | Value | Name |
---|---|---|
| 1 | HIGH(=Vcc) level |
| 0 | LOW(=GND) level |
Rising and falling edge of pin
The following enumeration values are handled with the type name E_PIN_INT_MODE
.
Definition | Name |
---|---|
| falling edge |
| rising edge |
最終更新