Optimized high speed nRF24L01+ driver class documentation v1.4.10
TMRh20 2020 - Optimized fork of the nRF24L01+ driver
Loading...
Searching...
No Matches
Porting: GPIO

Functions

 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)
 

Variables

static const int DIRECTION_IN = 0
 
static const int OUTPUT_HIGH = 1
 
static const int OUTPUT_LOW = 0
 

Detailed Description

Example of gpio.h class declaration for GPIO portability

Function Documentation

◆ GPIO()

GPIO ( )

◆ open()

static void open ( int port,
int DDR )
static

Similar to Arduino pinMode(pin,mode);

Parameters
port
DDR

◆ close()

static void close ( int port)
static
Parameters
port

◆ read()

static int read ( int port)
static

Similar to Arduino digitalRead(pin);

Parameters
port

◆ write()

static void write ( int port,
int value )
static

Similar to Arduino digitalWrite(pin,state);

Parameters
port
value

Variable Documentation

◆ DIRECTION_IN

const int DIRECTION_IN = 0
static

Definition at line 26 of file gpio.h.

◆ OUTPUT_HIGH

const int OUTPUT_HIGH = 1
static

Definition at line 28 of file gpio.h.

◆ OUTPUT_LOW

const int OUTPUT_LOW = 0
static

Definition at line 29 of file gpio.h.