MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
9 #include <Arduino.h> // pin functions and constants
12 #include "ExtendedIOElement.hpp"
16 #define AH_EXT_PIN(x) (x + NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)
28 #ifndef ARDUINO_API_VERSION
72 extern void pinMode(
int pin, uint8_t mode);
85 extern void shiftOut(
int dataPin,
int clockPin, uint8_t bitOrder, uint8_t val);
void pinMode(pin_t pin, uint8_t mode)
An ExtIO version of the Arduino function.
void analogWrite(pin_t pin, analog_t val)
An ExtIO version of the Arduino function.
int digitalRead(pin_t pin)
An ExtIO version of the Arduino function.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
const static uint8_t tmp_HIGH
#define AH_DIAGNOSTIC_POP()
const static uint8_t tmp_OUTPUT
const static uint8_t tmp_INPUT_PULLUP
analog_t analogRead(pin_t pin)
An ExtIO version of the Arduino function.
ExtendedIOElement & getIOElementOfPin(pin_t pin)
Find the IO element of a given extended IO pin number.
uint16_t analog_t
The type returned from analogRead and similar functions.
#define AH_DIAGNOSTIC_EXTERNAL_HEADER()
const static uint8_t tmp_LOW
#define AH_DIAGNOSTIC_WERROR()
#define BEGIN_AH_NAMESPACE
void digitalWrite(pin_t pin, uint8_t val)
An ExtIO version of the Arduino function.
const static uint8_t tmp_INPUT
void shiftOut(pin_t dataPin, pin_t clockPin, uint8_t bitOrder, uint8_t val)
An ExtIO version of the Arduino function.