Syntax
EpdPixel(wColumn As Word, wRow As Word, bPixel As Byte, bLeftColor As Byte, bRightColor As Byte)
Parameters
wColumn — X-position, pixel-aligned
wRow — Y-position, pixel-aligned
bPixel — Color of the pixel to write
bLeftColor — What color to pad the byte with, to the left of the pixel
bRightColor — What color to pad the byte with, to the right of the pixel
Sends a single pixel to the given position in the corresponding driver IC GRAM plane.
This function is used in bufferless mode only. In buffered mode, individual pixels are handled entirely within the frame buffer itself and sent to GRAM as complete, already-assembled bytes — EpdPixel() doesn't come into play there at all.
In bufferless mode, since EPD GRAM is byte-oriented rather than pixel-oriented, writing even one pixel means sending a full byte — and that byte covers 8 physical pixels, not just the one you actually want to change.
bLeftColor and bRightColor specify what to fill the other 7 bits of that byte with, on whichever side(s) of the target pixel they fall.
This matters because the bufferless routines do not rely on reading the existing display-memory byte back before overwriting it.
If the padding bits are filled incorrectly, the write also changes neighboring pixels that share the same byte.
Created with the Personal Edition of HelpNDoc: Upgrade your help files and your workflow with HelpNDoc's WinHelp HLP to CHM conversion