Control Surface master
MIDI Control Surface library for Arduino
Hardware-Types.hpp
Go to the documentation of this file.
1/* ✔ */
2
3#pragma once
4
6AH_DIAGNOSTIC_WERROR() // Enable errors on warnings
7
8#include <AH/Containers/Array.hpp>
10#include <stdint.h> // uint8_t
11
13
15using analog_t = uint16_t;
17using pin_t = uint16_t;
18
19#ifdef NO_PIN // Fix for FastLED: https://github.com/FastLED/FastLED/issues/893
20#undef NO_PIN
21#endif
22
24constexpr pin_t NO_PIN = 1 << (8 * sizeof(pin_t) - 1);
25
27template <size_t N>
29
31
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:36
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:35
uint16_t analog_t
The type returned from analogRead and similar functions.
constexpr pin_t NO_PIN
A special pin number that indicates an unused or invalid pin.
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
An array wrapper for easy copying, comparing, and iterating.
Definition: Array.hpp:36