From 53ddadc19e4e9f5fd70f6bd86a6ef97ebdb46591 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Thu, 26 May 2022 19:33:49 +0200 Subject: [PATCH] Change image orientation to conventional XY --- eink.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eink.hpp b/eink.hpp index 820d365..6d9768e 100644 --- a/eink.hpp +++ b/eink.hpp @@ -52,17 +52,17 @@ class Eink { sendData(0x01); sendCommand(Cmd::DATA_ENTRY_MODE); - sendData(0x01); + sendData(0x03); sendCommand(Cmd::SET_RAM_X_ADDR_POSITIONS); sendData(0x00); sendData((Width / 8) - 1); sendCommand(Cmd::SET_RAM_Y_ADDR_POSITIONS); + sendData(0x00); + sendData(0x00); sendData(Height - 1); sendData(0x00); - sendData(0x00); - sendData(0x00); sendCommand(Cmd::BORDER_WAVEFORM_CONTROL); sendData(0x05); @@ -74,7 +74,7 @@ class Eink { sendData(0x00); sendCommand(Cmd::SET_RAM_Y_ADDR); - sendData(Height - 1); + sendData(0x00); sendData(0x00); waitUntilIdle();