Control Surface  1.1.1
MIDI Control Surface library for Arduino
Hardware-Types.hpp
Go to the documentation of this file.
1 /* ✔ */
2 
3 #pragma once
4 
6 AH_DIAGNOSTIC_WERROR() // Enable errors on warnings
7 
8 #include <AH/Containers/Array.hpp>
10 #include <stdint.h> // uint8_t
11 
13 
15 using analog_t = uint16_t;
17 using 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 
24 constexpr pin_t NO_PIN = 1 << (8 * sizeof(pin_t) - 1);
25 
27 template <size_t N>
29 
31 
Warnings.hpp
AH::pin_t
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
Definition: Hardware-Types.hpp:17
AH_DIAGNOSTIC_POP
#define AH_DIAGNOSTIC_POP()
Definition: Warnings.hpp:17
AH::Array< pin_t, N >
AH::NO_PIN
constexpr pin_t NO_PIN
A special pin number that indicates an unused or invalid pin.
Definition: Hardware-Types.hpp:24
AH::analog_t
uint16_t analog_t
The type returned from analogRead and similar functions.
Definition: Hardware-Types.hpp:15
AH_DIAGNOSTIC_WERROR
#define AH_DIAGNOSTIC_WERROR()
Definition: Warnings.hpp:16
BEGIN_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE
Definition: AH/Settings/NamespaceSettings.hpp:9
END_AH_NAMESPACE
#define END_AH_NAMESPACE
Definition: AH/Settings/NamespaceSettings.hpp:10
NamespaceSettings.hpp