Control Surface  1.1.1
MIDI Control Surface library for Arduino
Namespaces | Macros | Functions | Variables
ExtendedInputOutput.hpp File Reference
#include <AH/Settings/Warnings.hpp>
#include <Arduino.h>
#include "ExtendedIOElement.hpp"
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

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

Macros

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

Functions

ExtendedIOElement & getIOElementOfPin (pin_t pin)
 Find the IO element of a given extended IO pin number. More...
 
void pinMode (pin_t pin, uint8_t mode)
 An ExtIO version of the Arduino function. More...
 
void pinMode (int pin, uint8_t mode)
 An ExtIO version of the Arduino function. More...
 
void digitalWrite (pin_t pin, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
void digitalWrite (int pin, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
int digitalRead (pin_t pin)
 An ExtIO version of the Arduino function. More...
 
int digitalRead (int pin)
 An ExtIO version of the Arduino function. More...
 
void shiftOut (pin_t dataPin, pin_t clockPin, uint8_t bitOrder, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
void shiftOut (int dataPin, int clockPin, uint8_t bitOrder, uint8_t val)
 An ExtIO version of the Arduino function. More...
 
analog_t analogRead (pin_t pin)
 An ExtIO version of the Arduino function. More...
 
analog_t analogRead (int pin)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (pin_t pin, analog_t val)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (int pin, analog_t val)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (int pin, int val)
 An ExtIO version of the Arduino function. More...
 
void analogWrite (pin_t pin, int val)
 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 = AH::detail::tmp_HIGH
 
const uint8_t LOW = AH::detail::tmp_LOW
 
const uint8_t INPUT = AH::detail::tmp_INPUT
 
const uint8_t OUTPUT = AH::detail::tmp_OUTPUT
 
const uint8_t INPUT_PULLUP = AH::detail::tmp_INPUT_PULLUP
 

Macro Definition Documentation

◆ AH_EXT_PIN

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

Definition at line 16 of file ExtendedInputOutput.hpp.

Variable Documentation

◆ HIGH

const uint8_t HIGH = AH::detail::tmp_HIGH

◆ LOW

const uint8_t LOW = AH::detail::tmp_LOW

◆ INPUT

const uint8_t INPUT = AH::detail::tmp_INPUT
Examples
Keyboard-Matrix-BCD.ino.

Definition at line 49 of file ExtendedInputOutput.hpp.

◆ OUTPUT

const uint8_t OUTPUT = AH::detail::tmp_OUTPUT

◆ INPUT_PULLUP

const uint8_t INPUT_PULLUP = AH::detail::tmp_INPUT_PULLUP
Examples
2.DigitalReadSerial.ino.

Definition at line 51 of file ExtendedInputOutput.hpp.