Refactor pins to be user-provided
This commit is contained in:
1 parent
2bad84d2e6
commit
1c01b17f4d
1 file changed
+4
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user