Object «brick»
Last updated
Last updated
This article is automatically translated from Russian by Google Translator.
The object "brick" represents the TRIK controller and provides access to the robot devices.
Provides access to the accelerometer (class "Accelerometer").
Provides access to battery information (class "Battery").
Provides access to the color sensor by the camera (class "ColorSensor").
Provides access to the display of the robot (class "Display").
Provides access to the encoder on the specified port (class "Encoder").
As a parameter, you must specify the port.
Get a photo from the camera as an array of bytes.
Provides access to the gyroscope (class "Gyroscope").
Provides access to the buttons on the robot body (class "Keys").
Provides access to the LED on the robot body (class "Led").
Provides access to the line sensor by the camera (class "LineSensor").
Provides access to the motor (power or servomotor) on the specified port (class "Motor").
As a parameter, you must specify the port.
Provides access to the object sensor by the camera (class "ObjectSensor").
Play the audio file.
As a parameter, you must specify the name of the file with an absolute path or the path relative to the folder trik
on the controller.
Warning! The file must be pre-loaded on the controller.
Say the line (in Russian or English).
As a parameter, you must specify a string in English or Russian.
Provides access to the sensor on the specified port (class "Sensor").
As a parameter, you must specify the port.
Stops all motors and active sensors, and removes what is drawn on the display.
Method
Description
Provides access to the accelerometer.
Provides access to battery information.
Provides access to the color sensor by the camera.
Provides access to the display of the robot.
Provides access to the encoder on the specified port.
Get a photo from the camera as an array of bytes.
Provides access to the gyroscope.
Provides access to the buttons on the body of the robot.
Play the audio file.
Provides access to the LED on the body of the robot.
Provides access to the line sensor by the camera.
Provides access to the motor on the specified port.
Provides access to the object sensor by the camera.
Pronounce the string passed as a parameter (in Russian or English).
Provides access to the sensor on the specified port.
Stops all motors and active sensors, and removes what is drawn on the display.