From 19c0be347dcb62a76381c243beb1f0ff050211de Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 3 Jan 2022 20:40:52 +0100 Subject: add preliminary arduino nano dmx driver note that it disables stdout / kout support, as the ATMega328 only has one UART. --- include/arch/arduino-nano/driver/dmx.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/arch/arduino-nano/driver/dmx.h (limited to 'include') 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 ©); + + public: + unsigned char frames[16]; + + DMX() {} + + void setup(); + void write(); +}; + +extern DMX dmx; -- cgit v1.2.3