LCD
1. Function Overview
To facilitate the verification of the LCD display function, a series of CLI commands have been designed, mainly including the on/off control of the JPEG pipeline decoding and the LCD display.
2. Code Path
Path:
ap/components/multimedia/cli/media_cli.c
3. Introduction to CLI Commands
The supported commands are as follows:
- lcd open
- Function Description
Used to test opening the selected LCD and decoding the camera images for display on the screen.
- Command Format
lcd open param1 [param2] [param3] [param4]
Param
value
param1
fb/line, indicate decode jpeg frame by complete frame or by 16 lines
param2
lcd device name, optional param, default “st7792”
param3
lcd device resolution, optional param, default “PPI_480X272”
param4
rotate degree, optional param, default 0
- Test Case
Test decoding the JPEG images output by the UVC line - by - line, rotating them by 90°, and displaying them on the ST7701SN screen:
lcd open fb st7701sn 90
- lcd close
- Function Description
Used to test turning off the decoding and display functions.
- Command Format
lcd close
No parameters
- Test Case
Turn off decoding and display:
lcd close