Splash screen is a commands set saved at designated memory(MCU or flash chip), it can be run on power up automatically if setting is ON.
It very usful to put custom logo in the splash screen and show the logo on the screen when power up.
This command write the subsequent data to the splash screen space in display.
Note: if the flash memory preinstalled on display, then the splash screen space is in flash memory(the size is 8KB on V7, 64KB on others), otherwise, it's in the MCU internal(only 2KB)
|
Direct: |
"SSSl" followed with splash screen data |
|
Arduino: |
void downloadStartScreen(uint16_t len, const unsigned char *data) |
|
C: |
void Digole_downloadStartScreen(uint16_t len, const unsigned char *data) |
l, len
the unsigned int value (0~65535) indicate the bytes length of splash screen.
data
the pointer to the data of splash screen.
none
Example (Arduino):
const uint8_t mysplash[]="TP\x10\10TTHello world!\x00\xFF"; //commands set must end of value 255
mydisp.downloadStartScreen(sizof(mysplash),&mysplash); //set the contrast to 50%
mydisp.displayStartScreen(1); //turn auto running ON
const uint8_t mysplash[]="TP\x10\10TTHello world!\x00\xFF"; //commands set must end of value 255
serial.writeString("SSS");
serial.write(sizof(mysplash)>>8); //write the length of splash screen
serial.write(sizof(mysplash)&0xFF);
delay(500); //wait for display internal erase of splash screen space
for(uint16_t i=0;i<sizof(mysplash);i++) //write the splash data to display
serial.write(mysplash[i]);
serial.writeString("DSS1"); //turn auto running ON
| Version | Description |
|---|---|