MySensors Library & Examples  2.3.2
Public Member Functions | List of all members
GPIOClass Class Reference

Detailed Description

GPIO class.

Definition at line 34 of file GPIO.h.

#include <GPIO.h>

+ Collaboration diagram for GPIOClass:

Public Member Functions

 GPIOClass ()
 GPIOClass constructor.
 
 GPIOClass (const GPIOClass &other)
 GPIOClass copy constructor.
 
 ~GPIOClass ()
 GPIOClass destructor.
 
void pinMode (uint8_t pin, uint8_t mode)
 Configures the specified pin to behave either as an input or an output. More...
 
void digitalWrite (uint8_t pin, uint8_t value)
 Write a high or a low value for the given pin. More...
 
uint8_t digitalRead (uint8_t pin)
 Reads the value from a specified pin. More...
 
uint8_t digitalPinToInterrupt (uint8_t pin)
 Arduino compatibility function, returns the same given pin. More...
 
GPIOClassoperator= (const GPIOClass &other)
 Overloaded assign operator. More...
 

Member Function Documentation

◆ digitalPinToInterrupt()

uint8_t GPIOClass::digitalPinToInterrupt ( uint8_t  pin)

Arduino compatibility function, returns the same given pin.

Parameters
pinThe 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
pinThe 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
pinnumber.
valueHIGH or LOW.

◆ operator=()

GPIOClass& GPIOClass::operator= ( const GPIOClass other)

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
pinThe number of the pin.
modeINPUT or OUTPUT.

The documentation for this class was generated from the following file: