From 36f39d1bbae7b64e45b4ba505c704c04d90ecf79 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 26 Jan 2022 22:24:50 +0100 Subject: atmega2560: add dmx driver on UART3 --- include/arch/atmega2560/driver/dmx.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/arch/atmega2560/driver/dmx.h (limited to 'include') 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 ©); + + public: + static unsigned char const num_frames = 32; + unsigned char frames[num_frames]; + + DMX() {} + + void setup(); + void write(); +}; + +extern DMX dmx; -- cgit v1.2.3