Arduino Helpers master
Utility library for Arduino
Hardware-Types.hpp
Go to the documentation of this file.
1/* ✔ */
2
3#pragma once
4
7#include <stdint.h> // uint8_t
8
10
12using analog_t = uint16_t;
14using pin_t = uint16_t;
15
16#ifdef NO_PIN // Fix for FastLED: https://github.com/FastLED/FastLED/issues/893
17#undef NO_PIN
18#endif
19
21constexpr pin_t NO_PIN = 1 << (8 * sizeof(pin_t) - 1);
22
24template <size_t N>
26
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).
#define END_AH_NAMESPACE
#define BEGIN_AH_NAMESPACE