fixed DisplayFrame method - width not calculated properly
This commit is contained in:
parent
5fa56c481f
commit
c6f215a0fa
1 changed files with 2 additions and 2 deletions
|
|
@ -121,8 +121,8 @@ void Epd::DisplayFrame(const unsigned char* frame_buffer) {
|
|||
|
||||
SendCommand(0x13);
|
||||
for (unsigned long j = 0; j < height; j++) {
|
||||
for (unsigned long i = 0; i < width; i++) {
|
||||
SendData(~frame_buffer[i + j * width]);
|
||||
for (unsigned long i = 0; i < width/8; i++) {
|
||||
SendData(~frame_buffer[i + j * width/8]);
|
||||
}
|
||||
}
|
||||
SendCommand(0x12);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue