From 7d2a5d25807b7b2e92218f205e9e0cf73b6a1391 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 12 Aug 2023 08:20:58 -0700 Subject: [PATCH] Update NeoUtil.h (#730) --- src/internal/NeoUtil.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/internal/NeoUtil.h b/src/internal/NeoUtil.h index d7ed30e..d7ae0c3 100644 --- a/src/internal/NeoUtil.h +++ b/src/internal/NeoUtil.h @@ -46,6 +46,16 @@ License along with NeoPixel. If not, see #define countof(array) (sizeof(array)/sizeof(array[0])) #endif +// some platforms do not define this standard pin name for some reason and use alternatives +// +#ifndef NOT_A_PIN + +#ifdef PIN_NOT_A_PIN +#define NOT_A_PIN PIN_NOT_A_PIN +#endif + +#endif + class NeoUtil { private: