All contents output on screen are based on pixels, the display can calculate the old pixel's color with the foreground color then write the pixel with the new color, other than simply copy the foreground color to the pixel.
There are 6 operation mode:
Tips: output same contents at "Not" or "Xor" mode, the even output extiguish the contents.
This command affect all following outputs to screen, until set to a different pattern.
Note: Not apply to the color image at not tranparent mode
|
Direct: |
"DMd" |
|
Arduino: |
void setMode(uint8_t d) |
|
C: |
void Digole_setMode(uint8_t d) |
d
The pixel operation mode, must be one of: 'C', '|', '!', '~', '&', '^', 'O', 'o'
none
mydisp.setMode('^'); //set to XOR mode (or NOT mode)
mydisp.drawStr(5,10,"Hello World!"); //display "Hello World!" on the screen
mydisp.drawStr(5,10,"Hello World!"); //"Hello World!" disappear on the screen
serial.writeString("DM^"); //set to XOR mode (or NOT mode)
serial.writeString("TP\x05\x0A"); //set character position
serial.writeString("TTHello World!\x00"); //display "Hello World!" on the screen
serial.writeString("TP\x05\x0A"); //set character position
serial.writeString("TTHello World!\x00"); //"Hello World!" disappear on the screen
| Version | Description |
|---|---|