diff options
Diffstat (limited to 'include/driver')
-rw-r--r-- | include/driver/pervasive_aurora_mb.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/driver/pervasive_aurora_mb.h b/include/driver/pervasive_aurora_mb.h new file mode 100644 index 0000000..8e34501 --- /dev/null +++ b/include/driver/pervasive_aurora_mb.h @@ -0,0 +1,28 @@ +/* + * Copyright 2021 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + * + * Driver for Pervasive Aurora Mb E-Paper displays with internal Timing + * Controller (iTC). Configured for the 300x400px 4.2" variant. + */ +#pragma once + +class PervasiveAuroraMb { + private: + PervasiveAuroraMb(const PervasiveAuroraMb ©); + bool isBusy(); + void spiWrite(unsigned char reg, const unsigned char *txbuf, unsigned int length); + + public: + PervasiveAuroraMb() {} + + void setup(); + void powerOn(); + void initialize(signed char temperature = 20); + void sendImage(unsigned char *frame); + void sendUpdate(); + void powerOff(); +}; + +extern PervasiveAuroraMb pervasiveAuroraMb; |