This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Namespaces | Macros | Functions | Variables
ExtendedInputOutput.hpp File Reference
#include "ExtendedIOElement.hpp"
#include <Arduino.h>
Include dependency graph for ExtendedInputOutput.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ExtIO
 A namespace with alternatives to the standard Arduino IO functions that can be used with extended IO pin numbers.
 

Macros

#define EXT_PIN(x)   (x + NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)
 

Functions

ExtendedIOElementExtIO::getIOElementOfPin (pin_t pin)
 Find the IO element of a given extended IO pin number. More...
 
void ExtIO::pinMode (pin_t pin, uint8_t mode)
 An ExtIO version of the Arduino function. More...
 
void ExtIO::pinMode (int pin, uint8_t mode)
 An ExtIO version of the Arduino function. More...
 
void ExtIO::digitalWrite (pin_t pin, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
void ExtIO::digitalWrite (int pin, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
int ExtIO::digitalRead (pin_t pin)
 An ExtIO version of the Arduino function. More...
 
int ExtIO::digitalRead (int pin)
 An ExtIO version of the Arduino function. More...
 
void ExtIO::shiftOut (pin_t dataPin, pin_t clockPin, uint8_t bitOrder, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
void ExtIO::shiftOut (int dataPin, int clockPin, uint8_t bitOrder, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
analog_t ExtIO::analogRead (pin_t pin)
 An ExtIO version of the Arduino function. More...
 
analog_t ExtIO::analogRead (int pin)
 An ExtIO version of the Arduino function. More...
 

Variables

const static uint8_t tmp_HIGH = HIGH
 
const static uint8_t tmp_LOW = LOW
 
const static uint8_t tmp_INPUT = INPUT
 
const static uint8_t tmp_OUTPUT = OUTPUT
 
const static uint8_t tmp_INPUT_PULLUP = INPUT_PULLUP
 
const uint8_t HIGH = tmp_HIGH
 
const uint8_t LOW = tmp_LOW
 
const uint8_t INPUT = tmp_INPUT
 
const uint8_t OUTPUT = tmp_OUTPUT
 
const uint8_t INPUT_PULLUP = tmp_INPUT_PULLUP
 

Macro Definition Documentation

◆ EXT_PIN

#define EXT_PIN (   x)    (x + NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)

Definition at line 8 of file ExtendedInputOutput.hpp.

Variable Documentation

◆ tmp_HIGH

const static uint8_t tmp_HIGH = HIGH
static

Definition at line 10 of file ExtendedInputOutput.hpp.

◆ tmp_LOW

const static uint8_t tmp_LOW = LOW
static

Definition at line 11 of file ExtendedInputOutput.hpp.

◆ tmp_INPUT

const static uint8_t tmp_INPUT = INPUT
static

Definition at line 12 of file ExtendedInputOutput.hpp.

◆ tmp_OUTPUT

const static uint8_t tmp_OUTPUT = OUTPUT
static

Definition at line 13 of file ExtendedInputOutput.hpp.

◆ tmp_INPUT_PULLUP

const static uint8_t tmp_INPUT_PULLUP = INPUT_PULLUP
static

Definition at line 14 of file ExtendedInputOutput.hpp.

◆ HIGH

const uint8_t HIGH = tmp_HIGH

◆ LOW

const uint8_t LOW = tmp_LOW

◆ INPUT

const uint8_t INPUT = tmp_INPUT

Definition at line 37 of file ExtendedInputOutput.hpp.

◆ OUTPUT

const uint8_t OUTPUT = tmp_OUTPUT

◆ INPUT_PULLUP

const uint8_t INPUT_PULLUP = tmp_INPUT_PULLUP
Examples
2.DigitalReadSerial.ino.

Definition at line 39 of file ExtendedInputOutput.hpp.