Merge 77940e392f into fc4f54334d
This commit is contained in:
commit
b31c20e598
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ void Epd::SetPartialWindow(const unsigned char* buffer_black, const unsigned cha
|
|||
SendCommand(PARTIAL_WINDOW);
|
||||
SendData(x >> 8);
|
||||
SendData(x & 0xf8); // x should be the multiple of 8, the last 3 bit will always be ignored
|
||||
SendData(((x & 0xf8) + w - 1) >> 8);
|
||||
SendData((x + w - 1) >> 8);
|
||||
SendData(((x & 0xf8) + w - 1) | 0x07);
|
||||
SendData(y >> 8);
|
||||
SendData(y & 0xff);
|
||||
|
|
@ -137,7 +137,7 @@ void Epd::SetPartialWindowBlack(const unsigned char* buffer_black, int x, int y,
|
|||
SendCommand(PARTIAL_WINDOW);
|
||||
SendData(x >> 8);
|
||||
SendData(x & 0xf8); // x should be the multiple of 8, the last 3 bit will always be ignored
|
||||
SendData(((x & 0xf8) + w - 1) >> 8);
|
||||
SendData((x + w - 1) >> 8);
|
||||
SendData(((x & 0xf8) + w - 1) | 0x07);
|
||||
SendData(y >> 8);
|
||||
SendData(y & 0xff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue