mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
Include Arduino header when using Arduino
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
@@ -2,3 +2,7 @@
|
||||
|
||||
// Helper macro to define a version code, whose value can be compared against other version codes.
|
||||
#define VERSION_CODE(major, minor, patch) ((major) << 16 | (minor) << 8 | (patch))
|
||||
|
||||
#ifdef USE_ARDUINO
|
||||
#include <Arduino.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user