summaryrefslogtreecommitdiff
path: root/include/badge/log.h
diff options
context:
space:
mode:
authoruvok2025-07-19 10:23:53 +0200
committeruvok2025-07-19 10:23:53 +0200
commitb5662a6e820845dad42147e0be18718a10f47581 (patch)
treecc42e56a8457e264e5e0e0ca67e3c885b96e6f3b /include/badge/log.h
parent7f4bd7d961679d4fe5b0bc6e6255968e65352111 (diff)
gpio: Change queue type, use digitalPinToInterrupt macro, logging
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