Add macros header with more usable Arduino version defines (#2145)

This commit is contained in:
Oxan van Leeuwen
2021-08-23 09:19:21 +02:00
committed by GitHub
parent b0fa317302
commit 8cc3cbb22e
6 changed files with 72 additions and 15 deletions
@@ -1,13 +1,14 @@
#pragma once
#include "esphome/core/macros.h"
#include "esphome/core/component.h"
#include "esphome/core/helpers.h"
#include "esphome/core/color.h"
#include "esphome/components/light/light_output.h"
#include "esphome/components/light/addressable_light.h"
#ifdef ARDUINO_ESP8266_RELEASE_2_3_0
#error The NeoPixelBus library requires at least arduino_core_version 2.4.x
#if defined(ARDUINO_ARCH_ESP8266) && ARDUINO_VERSION_CODE < VERSION_CODE(2, 4, 0)
#error The NeoPixelBus library requires at least arduino_version 2.4.x
#endif
#include "NeoPixelBus.h"