To use the ePaper module, it is important to understand its coordinate system. Most computer graphics, displays, and terminals follow a similar convention; the top-left corner is the origin.
Look carefully at the graphic below. The display in the graphic shows a single black pixel in each corner of the screen. The grey text closest to each pixel represents that pixel’s coordinates. The top-left pixel is in row zero and column zero. You could also say that its x/y position is (0,0). Since the display is 128 pixels wide, and the first pixel is zero, the rightmost pixel is in column 127.
When we refer to the coordinates of a pixel, we use the notation (x,y), where x is how far across from left to right, and y is how far down from top to bottom.
The cursor is the point where the ePaper module begins printing text or numbers. If you set the cursor to (0,0), it will print text beginning at the top-left corner. If you set the cursor to (2,2), it will begin printing text 2 pixels left and 2 pixels down from the top-left corner:
This test program prints the Hello World message three times, using different starting coordinates each time.
The program prints Hello World! three times, starting at different coordinates. Since the second and third prints' coordinates were close to the first, the three printings are overlapping and look like they blend together.
What happens when different combinations of font and background color are written close to each other? — It depends!