summaryrefslogtreecommitdiff
path: root/include/badge/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/badge/log.h')
-rw-r--r--include/badge/log.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/badge/log.h b/include/badge/log.h
new file mode 100644
index 0000000..cbbe134
--- /dev/null
+++ b/include/badge/log.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <Arduino.h>
+
+namespace de::uvok::badge
+{
+#define LOG_F(...) \
+ { \
+ Serial.printf("[%u] ", millis()); \
+ Serial.printf(__VA_ARGS__); \
+ }
+
+} // namespace de::uvok::badge