Enter the car system, end the car program, enter "ip (ip is the car's ip): 8888" in the browser, enter the password "yahboom"Then log inEnter the path of Rider-pi_class/2.Basic Control Ooperations/1.Small car screen display and run car lcd control.ipynb.
3. Experimental phenomenon
Draw an oblique straight line
Draw a circle
Draw a rectangle
Display text
Display an image
4. Analysis of main source code parameters
Draw a straight linelcd_line(x1,y1,x2,y2,color=(r,g,b),width=width)
Parameter name
Format
Input range
Description
x1,y1,x2,y2
Number
x1 x2:[0,320] y1 y2:[0,240]
x1,y1 are the initial point x2,y2 are the end point coordinates
color (optional) defaults to white
rgb tuple
rgb:[0,255]
color is the line color
width (optional) defaults to 2
Number
/
width is the line width
Draw a circlelcd_round(center_x, center_y, radius, color=(255, 255, 255), width=2)
Parameter name
Format
Input range
Description
center_x, center_y
Number
center_x:[0,320] center_y:[0,240]
center_x, center_y are the coordinates of the center of the circle
raduius
Number
/
raduius is the radius
color (optional) defaults to white
rgb tuple
rgb:[0,255]
color is the color
width (optional) defaults to 2
Number
/
width is the arc width
Draw a rectanglelcd_rectangle(x1,y1,x2,y2,fill=None,outline=(255,255,255),width=2)
Parameter name
Format
Input range
Description
x1,y1,x2,y2
Number
x1 x2:[0,320] y1 y2:[0,240]
x1,y1 are the initial point x2,y2 are the end point coordinates