Show the video stream on the display

Description

  Show the video stream from serial port on the display. support 64K and 262K color format. 

  This function only availabe on color display larger than 1.3".

The display exit the video mode if no new data on the serial port over 0.2 seconds.

Usage:

Direct:

 "VIDEOXYWHf" follow the continue video data

Arduino:

void showVideo(int X, int Y, int W,int H,uint8_t format)

C:

void Digole_showVideo(int X, int Y, int W,int H,uint8_t format)

Parameters:

f,format

The video color depth, 0 :64K color, 1:262K color depth, one byte.

X, Y

The video box position of top-left. 2 bytes integer.

W, H

The video box size in pixels of the width and height. 2 bytes integer.

Return:

none

See the real video on youtube

Example (Arduino):

mydisp.showVideo(20,20,80,80,1); //the following data are 262K format video stream

while(condition){
mydisp.write(d[]);
}

delay(500); //exit video mode

 

Changelog

Version Description
   

See Also