GPIO class.
Definition at line 34 of file GPIO.h.
#include <GPIO.h>
◆ digitalPinToInterrupt()
uint8_t GPIOClass::digitalPinToInterrupt |
( |
uint8_t |
pin | ) |
|
Arduino compatibility function, returns the same given pin.
- Parameters
-
pin | The number of the pin. |
- Returns
- The same parameter pin number.
◆ digitalRead()
uint8_t GPIOClass::digitalRead |
( |
uint8_t |
pin | ) |
|
Reads the value from a specified pin.
- Parameters
-
pin | The number of the pin. |
- Returns
- HIGH or LOW.
◆ digitalWrite()
void GPIOClass::digitalWrite |
( |
uint8_t |
pin, |
|
|
uint8_t |
value |
|
) |
| |
Write a high or a low value for the given pin.
- Parameters
-
pin | number. |
value | HIGH or LOW. |
◆ operator=()
Overloaded assign operator.
◆ pinMode()
void GPIOClass::pinMode |
( |
uint8_t |
pin, |
|
|
uint8_t |
mode |
|
) |
| |
Configures the specified pin to behave either as an input or an output.
- Parameters
-
pin | The number of the pin. |
mode | INPUT or OUTPUT. |
The documentation for this class was generated from the following file:
- hal/architecture/Linux/drivers/core/GPIO.h