Control Surface
1.1.1
MIDI Control Surface library for Arduino
src
AH
Hardware
Hardware-Types.hpp
Go to the documentation of this file.
1
/* ✔ */
2
3
#pragma once
4
5
#include <
AH/Settings/Warnings.hpp
>
6
AH_DIAGNOSTIC_WERROR
()
// Enable errors on warnings
7
8
#include <AH/Containers/Array.hpp>
9
#include <
AH/Settings/NamespaceSettings.hpp
>
10
#include <stdint.h>
// uint8_t
11
12
BEGIN_AH_NAMESPACE
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>
28
using
PinList
=
Array<pin_t, N>
;
29
30
END_AH_NAMESPACE
31
32
AH_DIAGNOSTIC_POP
()
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
Generated by
1.8.16