espleaf/include/tools.h

16 lines
436 B
C
Raw Normal View History

2021-01-03 16:12:47 +00:00
#pragma once
#include "my_fastled.h"
#include "syslog.h"
2021-01-03 16:12:47 +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);