diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-01-03 20:40:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-01-03 20:40:52 +0100 |
commit | 19c0be347dcb62a76381c243beb1f0ff050211de (patch) | |
tree | 9a2698328f48b140e417f3c34cd09b6a184ec179 /include | |
parent | b78f595070a41037a7df04e103a959b6ad68a7bd (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.h | 20 |
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 ©); + + public: + unsigned char frames[16]; + + DMX() {} + + void setup(); + void write(); +}; + +extern DMX dmx; |