Set background color of 256 color format, the color format is:RRRGGGBB.
If want more richful background color, can use command "FTOB" to copy foreground color to background. Remember: must change foreground color after using "FTOB" due to they are same.
|
Direct: |
"BGCc"----set the background color using RRRGGGBB format |
|
Arduino: |
void setBgColor(uint8_t c) |
|
C: |
void Digole_setBgColor(uint8_t c) |
c
The byte of RRRGGGBB format
none
mydisp.setBgColor(0B01101101); //set the background to grey
mydisp.setTrueColor(0,0x10,0); //set foreground color to light green
mydisp.writeStr("FTOB"); //copy foreground color to backround
mydisp.setTrueColor(0,0x10,0); //set foreground color to white
serial.writeString("BGC\x6d"); //set the background to grey
serial.writeString("ESC\x00\x10\x00"); //set foreground color to light green
serial.writeString("FTOB"); //copy foreground color to backround
serial.writeString("ESC\xff\xff\xff"); //change the foregroud color to white
| Version | Description |
|---|---|