summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-01-03 20:40:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-01-03 20:40:52 +0100
commit19c0be347dcb62a76381c243beb1f0ff050211de (patch)
tree9a2698328f48b140e417f3c34cd09b6a184ec179 /include
parentb78f595070a41037a7df04e103a959b6ad68a7bd (diff)
add preliminary arduino nano dmx driver
note that it disables stdout / kout support, as the ATMega328 only has one UART.
Diffstat (limited to 'include')
-rw-r--r--include/arch/arduino-nano/driver/dmx.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/arch/arduino-nano/driver/dmx.h b/include/arch/arduino-nano/driver/dmx.h
new file mode 100644
index 0000000..5822a0d
--- /dev/null
+++ b/include/arch/arduino-nano/driver/dmx.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2022 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+class DMX {
+ private:
+ DMX(const DMX &copy);
+
+ public:
+ unsigned char frames[16];
+
+ DMX() {}
+
+ void setup();
+ void write();
+};
+
+extern DMX dmx;