Compare commits

...

1 Commits

Author SHA1 Message Date
1c01b17f4d Refactor pins to be user-provided 2022-05-26 15:16:09 +02:00

View File

@@ -7,14 +7,14 @@
#include "../clock.hpp"
#include "../io/io.hpp"
template <typename Spi>
template <typename Spi, io::P RstPin, io::P DcPin, io::P BusyPin>
class Epd {
static constexpr auto width = uint16_t{200};
static constexpr auto height = uint16_t{200};
io::Pin<io::P::C1> m_rst;
io::Pin<io::P::C0> m_dc;
io::Pin<io::P::C2> m_bsy;
io::Pin<RstPin> m_rst;
io::Pin<DcPin> m_dc;
io::Pin<BusyPin> m_bsy;
public:
Epd() = default;