MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
11 #include <AH/Arduino-Wrapper.h> // pin functions and constants
14 #include <AH/Hardware/Hardware-Types.hpp>
18 #define AH_EXT_PIN(x) (x + NUM_DIGITAL_PINS + NUM_ANALOG_INPUTS)
30 #ifndef ARDUINO_API_VERSION
50 #if defined(SAMD_SERIES) || defined(_LIB_SAM_)
71 class ExtendedIOElement;
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).
constexpr static auto tmp_OUTPUT
constexpr static auto tmp_LOW
#define AH_DIAGNOSTIC_POP()
int digitalReadBuffered(pin_t pin)
A buffered ExtIO version of the Arduino function.
void digitalWrite(pin_t pin, PinStatus_t val)
An ExtIO version of the Arduino function.
void pinModeBuffered(pin_t pin, PinMode_t mode)
A buffered ExtIO version of the Arduino function.
analog_t analogReadBuffered(pin_t pin)
A buffered ExtIO version of the Arduino function.
analog_t analogRead(pin_t pin)
An ExtIO version of the Arduino function.
constexpr static auto tmp_HIGH
void analogWriteBuffered(pin_t pin, analog_t val)
A buffered 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()
void shiftOut(pin_t dataPin, pin_t clockPin, BitOrder_t bitOrder, uint8_t val)
An ExtIO version of the Arduino function.
void pinMode(pin_t pin, PinMode_t mode)
An ExtIO version of the Arduino function.
#define AH_DIAGNOSTIC_WERROR()
void digitalWriteBuffered(pin_t pin, PinStatus_t val)
A buffered ExtIO version of the Arduino function.
#define BEGIN_AH_NAMESPACE
constexpr static auto tmp_INPUT_PULLUP
constexpr static auto tmp_INPUT