diff --git a/eink.hpp b/eink.hpp index 88c27eb..f8c9daa 100644 --- a/eink.hpp +++ b/eink.hpp @@ -110,7 +110,8 @@ class Eink { _delay_ms(200); } - static void draw(const uint8_t *image) + template + static void draw(const Image &image) { constexpr auto BLOCK_SIZE = 5; @@ -167,8 +168,8 @@ class Eink { } }; - sendImageChannel(Cmd::WRITE_RAM_BLACK, image); - sendImageChannel(Cmd::WRITE_RAM_RED, image); + sendImageChannel(Cmd::WRITE_RAM_BLACK, image.data()); + sendImageChannel(Cmd::WRITE_RAM_RED, image.data()); sendCommand(Cmd::DISPLAY_UPDATE_CONTROL_2); sendData(0xF7);