diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-01-26 22:24:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-01-26 22:24:50 +0100 |
commit | 36f39d1bbae7b64e45b4ba505c704c04d90ecf79 (patch) | |
tree | 4a04d677bc4e11a3d6dc3fc6bf9d530664d5e6f6 /include/arch/atmega2560/driver | |
parent | a0e6e8efb208d8b6b21199554ddf21f86c405857 (diff) |
atmega2560: add dmx driver on UART3
Diffstat (limited to 'include/arch/atmega2560/driver')
-rw-r--r-- | include/arch/atmega2560/driver/dmx.h | 21 |
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 ©); + + public: + static unsigned char const num_frames = 32; + unsigned char frames[num_frames]; + + DMX() {} + + void setup(); + void write(); +}; + +extern DMX dmx; |