Skip to main content

Software library documentation

Block categoryBlock iconParametersBlock function descriptio
Travel controlParameter 1 type: integer
Parameter range: -100~100
Parameter 2 type: integer
Parameter range: -100~100
Set the speed of the left and right wheels respectively
Parameter 1 type: drop-down option
Optional items: forward, backward, turn left, turn right
Parameter 2 type: integer
Parameter range: -100~100
Parameter 3 type: integer
Parameter range: natural number
Set the car's driving direction, speed and duration
Parameter 1 type: drop-down options
Options: forward, backward, turn left, turn right
Parameter 2 type: integer
Parameter range: -100~100
Set the direction and speed of the car
Set the car to stop immediately
Line patrol sensorParameter 1 Type: Drop-down options
Available options: Left, Right
Parameter 2 Type: Drop-down options
Available options: Black, White
Determine the status of the patrol head on the left or right side of the car separately
Parameter 1 type: drop-down options
Optional items: ●●, ○●, ●○, ○○
Determine the status of the car's line patrol head
Parameter 1 Type: Drop-down options
Available options: Left, Right
Parameter 2 Type: Drop-down options
Available options: Black, White
Determine the status of the patrol head on the left or right side of the car separately
Ultrasonic SensorsParameter 1 Type: Drop-down options
Optional: Centimeters, Inches
Get the return value of the ultrasonic sensor
Parameter 1 type: drop-down options
Optional items: <, >
Parameter 2 type: integer
Parameter range: natural number
Get the return value of the ultrasonic sensor
Lighting ControlParameter 1 type: drop-down options
Optional items:
Set the color of the headlights to a preset color
Parameter 1 type: integer
Parameter range: 0~255, Parameter 2 type: integer
Parameter range: 0~255, Parameter 3 type: integer
Parameter range: 0~255
Set the color of the headlights
Turn off your headlights
Servo ControlParameter 1 type: drop-down options
Options: 180°, 360°
Parameter 2 type: drop-down options
Options: S1, S2, S3, S4
Parameter 3 type: integer
Parameter range: 0~360
Control the rotation angle of the servo
Parameter 1 type: drop-down options
Options: S1, S2, S3, S4
Parameter 2 type: integer
Parameter range: -100~100
Control the speed of continuous rotation servos
PID ControlParameter 1 type: integer
Parameter range: 20~50
Parameter 2 type: drop-down option
Optional items: cm/sec, inch/sec
Control the speed of the car
Parameter 1 type: integer
Parameter range: 20~50
Parameter 2 type: integer
Parameter range: 20~50 Parameter 3 type: drop-down option
Optional: cm/sec, inch/sec
Set the rotation speed of the two wheels of the two carts respectively
Parameter 1 type: drop-down options
Optional items: front, back
Parameter 2 type: integer
Parameter range: natural number
Parameter 3 type: drop-down options
Optional items: centimeters, inches
Control the direction and distance of the car
Parameter 1 type: drop-down options
Options: turn left, turn right, turn left on the spot, turn right on the spot
Parameter 2 type: integer
Parameter range: 0~360
Control the steering mode and steering angle of the car
Parameter 1 type: integer
Parameter range: natural number
Parameter 2 type: drop-down option
Optional items: centimeters, inches
Initialize the size of the grid
Parameter 1 type: integer
Parameter range: natural number
Control the car's travel to a specified number of squares