Change image orientation to conventional XY
This commit is contained in:
parent
d30da589d2
commit
4a904dff2f
12
eink.hpp
12
eink.hpp
@ -52,17 +52,17 @@ class Eink {
|
|||||||
sendData(0x01);
|
sendData(0x01);
|
||||||
|
|
||||||
sendCommand(Cmd::DATA_ENTRY_MODE);
|
sendCommand(Cmd::DATA_ENTRY_MODE);
|
||||||
sendData(0x01);
|
sendData(0x02);
|
||||||
|
|
||||||
sendCommand(Cmd::SET_RAM_X_ADDR_POSITIONS);
|
sendCommand(Cmd::SET_RAM_X_ADDR_POSITIONS);
|
||||||
|
sendData(Width / 8 - 1);
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
sendData((Width / 8) - 1);
|
|
||||||
|
|
||||||
sendCommand(Cmd::SET_RAM_Y_ADDR_POSITIONS);
|
sendCommand(Cmd::SET_RAM_Y_ADDR_POSITIONS);
|
||||||
|
sendData(0x00);
|
||||||
|
sendData(0x00);
|
||||||
sendData(Height - 1);
|
sendData(Height - 1);
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
sendData(0x00);
|
|
||||||
sendData(0x00);
|
|
||||||
|
|
||||||
sendCommand(Cmd::BORDER_WAVEFORM_CONTROL);
|
sendCommand(Cmd::BORDER_WAVEFORM_CONTROL);
|
||||||
sendData(0x05);
|
sendData(0x05);
|
||||||
@ -71,10 +71,10 @@ class Eink {
|
|||||||
sendData(0x80);
|
sendData(0x80);
|
||||||
|
|
||||||
sendCommand(Cmd::SET_RAM_X_ADDR);
|
sendCommand(Cmd::SET_RAM_X_ADDR);
|
||||||
sendData(0x00);
|
sendData(Width / 8 - 1);
|
||||||
|
|
||||||
sendCommand(Cmd::SET_RAM_Y_ADDR);
|
sendCommand(Cmd::SET_RAM_Y_ADDR);
|
||||||
sendData(Height - 1);
|
sendData(0x00);
|
||||||
sendData(0x00);
|
sendData(0x00);
|
||||||
|
|
||||||
waitUntilIdle();
|
waitUntilIdle();
|
||||||
|
Loading…
Reference in New Issue
Block a user