summaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/atmega2560/driver/dmx.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/arch/atmega2560/driver/dmx.h b/include/arch/atmega2560/driver/dmx.h
new file mode 100644
index 0000000..5550c19
--- /dev/null
+++ b/include/arch/atmega2560/driver/dmx.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2022 Daniel Friesel
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+class DMX {
+ private:
+ DMX(const DMX &copy);
+
+ public:
+ static unsigned char const num_frames = 32;
+ unsigned char frames[num_frames];
+
+ DMX() {}
+
+ void setup();
+ void write();
+};
+
+extern DMX dmx;