Set background color

Description

  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. 

Usage:

Direct:

"BGCc"----set the background color using RRRGGGBB format
"FTOB"----copy foreground color to background

Arduino:

void setBgColor(uint8_t c)

C:

void Digole_setBgColor(uint8_t c)

Parameters:

c

The byte of RRRGGGBB format

Return:

none

Example (Arduino):

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

Example(direct)

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

Changelog

Version Description
   

See Also

Clear screen

Clear draw window

The 256 color code 

Set foreground color