2021-01-03 16:12:47 +00:00
|
|
|
#pragma once
|
2021-01-06 10:51:11 +00:00
|
|
|
#include "my_fastled.h"
|
2021-01-16 12:41:46 +00:00
|
|
|
#include "syslog.h"
|
2021-01-03 16:12:47 +00:00
|
|
|
|
2021-01-16 12:41:46 +00:00
|
|
|
//#define LOG(...) Serial.printf(__VA_ARGS__)
|
|
|
|
//#define LOGln(...) Serial.printf(__VA_ARGS__); Serial.println()
|
|
|
|
|
|
|
|
#ifdef SYSLOG_HOST
|
|
|
|
#define LOGln(...) { char buffer[512]; snprintf(buffer, 512, __VA_ARGS__); syslog(buffer); Serial.println(buffer);}
|
|
|
|
#else
|
|
|
|
#define LOGln(...) Serial.printf(__VA_ARGS__); Serial.println()
|
|
|
|
#endif
|
2021-01-03 16:12:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
void clear_leds();
|
|
|
|
void set_all_leds(CRGB color);
|