|
| | GPIO () |
| |
| static void | open (int port, int DDR) |
| |
| static void | close (int port) |
| |
| static int | read (int port) |
| |
| static void | write (int port, int value) |
| |
Example of gpio.h class declaration for GPIO portability
◆ GPIO()
◆ open()
| static void open |
( |
int | port, |
|
|
int | DDR ) |
|
static |
◆ close()
| static void close |
( |
int | port | ) |
|
|
static |
◆ read()
| static int read |
( |
int | port | ) |
|
|
static |
Similar to Arduino digitalRead(pin);
- Parameters
-
◆ write()
| static void write |
( |
int | port, |
|
|
int | value ) |
|
static |
◆ DIRECTION_IN
| const int DIRECTION_IN = 0 |
|
static |
◆ OUTPUT_HIGH
| const int OUTPUT_HIGH = 1 |
|
static |
◆ OUTPUT_LOW