Enums#
Analog Units#
Name |
Python Enum |
Description |
---|---|---|
Percent |
|
An analog unit that is measured in percentage. |
Eightbit |
|
An analog unit that is measured in an 8-bit analog value (a value with 256 possible states). |
Tenbit |
|
An analog unit that is measured in a 10-bit analog value (a value with 1024 possible states). |
Twelvebit |
|
An analog unit that is measured in a 12-bit analog value (a value with 4096 possible states). |
Millivolts |
|
An analog unit that is measured in millivolts. |
Axis Types#
Name |
Python Enum |
Description |
---|---|---|
X-Axis |
|
The X axis of the Inertial sensor. |
Y-Axis |
|
The Y axis of the Inertial sensor. |
Z-Axis |
|
The Z axis of the Inertial sensor. |
Brake Types#
Name |
Python Enum |
Description |
---|---|---|
Coast |
|
A brake unit that is defined as motor coast. |
Brake |
|
A brake unit that is defined as motor brake. |
Hold |
|
A brake unit that is defined as motor hold. |
Color Types#
Name |
Python Enum |
Description |
---|---|---|
Black |
|
Predefined color black. |
White |
|
Predefined color white. |
Red |
|
Predefined color red. |
Green |
|
Predefined color green. |
Blue |
|
Predefined color blue. |
Yellow |
|
Predefined color yellow. |
Orange |
|
Predefined color orange. |
Purple |
|
Predefined color purple. |
Cyan |
|
Predefined color cyan. |
Transparent |
|
Predefined color transparent. |
Red Violet |
|
Predefined color red-violet. |
Violet |
|
Predefined color violet. |
Blue Violet |
|
Predefined color blue-violet. |
Blue Green |
|
Predefined color blue-green. |
Yellow Green |
|
Predefined color yellow-green. |
Yellow Orange |
|
Predefined color yellow-orange. |
Red Orange |
|
Predefined color red-orange. |
Direction Types#
Name |
Python Enum |
Description |
---|---|---|
Forward |
|
A direction unit that is defined as forward. |
Reverse |
|
A direction unit that is defined as backward. |
Distance Units#
Name |
Python Enum |
Description |
---|---|---|
Millimeters |
|
A distance unit that is measured in millimeters. |
Inches |
|
A distance unit that is measured in inches. |
Centimeters |
|
A distance unit that is measured in centimeters. |
Fade Types#
Name |
Python Enum |
Description |
---|---|---|
Off |
|
Sets the TouchLED Sensor’s Fade to off. |
Slow |
|
Sets the TouchLED Sensor to Fade slowly. |
Fast |
|
Sets the TouchLED Sensor to Fade quickly. |
Font Types#
Name |
Python Enum |
Description |
---|---|---|
Mono12 |
|
Monotype font of size 12. |
Mono15 |
|
Monotype font of size 15. |
Mono20 |
|
Monotype font of size 20. |
Mono30 |
|
Monotype font of size 30. |
Mono40 |
|
Monotype font of size 40. |
Mono60 |
|
Monotype font of size 60. |
Prop20 |
|
Proportional font of size 20. |
Prop30 |
|
Proportional font of size 30. |
Prop40 |
|
Proportional font of size 40. |
Prop60 |
|
Proportional font of size 60. |
CJK16 |
|
Chinese/Japanese/Korean font of size 16. |
Gear Settings#
Name |
Python Enum |
Description |
---|---|---|
Ratio 1:1 |
|
A Drivebase or Motor with a Gear ratio of 1:1. |
Ratio 2:1 |
|
A Drivebase or Motor with a Gear ratio of 2:1. |
Ratio 3:1 |
|
A Drivebase or Motor with a Gear ratio of 3:1. |
Gesture Types#
Name |
Python Enum |
Description |
---|---|---|
Up |
|
The Up Gesture detected by the Optical Sensor. |
Down |
|
The Down Gesture detected by the Optical Sensor. |
Left |
|
The Left Gesture detected by the Optical Sensor. |
Right |
|
The Right Gesture detected by the Optical Sensor. |
Gyro Calibration Types#
Name |
Python Enum |
Description |
---|---|---|
Normal |
|
Normal gyro calibration speed. |
Slow |
|
Slow gyro calibration speed. |
Extended |
|
Extended gyro calibration speed. |
LED State Types#
Name |
Python Enum |
Description |
---|---|---|
Off |
|
LED state to turn off the LED. |
On |
|
LED state to turn on the LED. |
Object Size Types#
Name |
Python Enum |
Description |
---|---|---|
Small |
|
Small object size. |
Medium |
|
Medium object size. |
Large |
|
Large object size. |
Orientation Types#
Name |
Python Enum |
Description |
---|---|---|
Roll |
|
Roll, orientation around the X axis of the Inertial sensor. |
Pitch |
|
Pitch, orientation around the Y axis of the Inertial sensor. |
Yaw |
|
Yaw, orientation around the Z axis of the Inertial sensor. |
Ports#
Name |
Python Enum |
Description |
---|---|---|
Port 1 |
|
Sets the port that device is connected to on the Brain to port 1. |
Port 2 |
|
Sets the port that device is connected to on the Brain to port 2. |
Port 3 |
|
Sets the port that device is connected to on the Brain to port 3. |
Port 4 |
|
Sets the port that device is connected to on the Brain to port 4. |
Port 5 |
|
Sets the port that device is connected to on the Brain to port 5. |
Port 6 |
|
Sets the port that device is connected to on the Brain to port 6. |
Port 7 |
|
Sets the port that device is connected to on the Brain to port 7. |
Port 8 |
|
Sets the port that device is connected to on the Brain to port 8. |
Port 9 |
|
Sets the port that device is connected to on the Brain to port 9. |
Port 10 |
|
Sets the port that device is connected to on the Brain to port 10. |
Port 11 |
|
Sets the port that device is connected to on the Brain to port 11. |
Port 12 |
|
Sets the port that device is connected to on the Brain to port 12. |
Rotation Units#
Name |
Python Enum |
Description |
---|---|---|
Degrees |
|
A rotation unit that is measured in degrees. |
Revolutions |
|
A rotation unit that is measured in revolutions. |
Raw |
|
A rotation unit that is measured in raw data form. |
Sound Types#
Name |
Python Enum |
Description |
---|---|---|
Siren |
|
Sound type siren. |
Wrong Way |
|
Sound type wrong way. |
Wrong Way Slow |
|
Sound type wrong way slow. |
Fill Up |
|
Sound type fill up. |
Headlights On |
|
Sound type headlights on. |
Headlights Off |
|
Sound type headlights off. |
Tollbooth |
|
Sound type tollbooth. |
Alarm |
|
Sound type alarm. |
Tada |
|
Sound type tada. |
Door Close |
|
Sound type door close. |
Ratchet |
|
Sound type ratchet. |
Wrench |
|
Sound type wrench. |
Siren2 |
|
Sound type siren 2. |
Ratchet2 |
|
Sound type ratchet 2. |
Alarm2 |
|
Sound type alarm 2. |
Power Down |
|
Sound type power down. |
Temperature Units#
Name |
Python Enum |
Description |
---|---|---|
Celsius |
|
A temperature unit that is measured in Celsius. |
Fahrenheit |
|
A temperature unit that is measured in Fahrenheit. |
Time Units#
Name |
Python Enum |
Description |
---|---|---|
Seconds |
|
A time unit that is measured in seconds. |
Milliseconds |
|
A time unit that is measured in milliseconds. |
Torque Units#
Name |
Python Enum |
Description |
---|---|---|
Newton Meters |
|
A torque unit that is measured in Newton Meters. |
Inch Pounds |
|
A torque unit that is measured in Inch Pounds. |
Turn Types#
Name |
Python Enum |
Description |
---|---|---|
Left |
|
A turn unit that is defined as left turning. |
Right |
|
A turn unit that is defined as right turning. |
Undefined |
|
A turn unit used when direction is not known. |
Velocity Units#
Name |
Python Enum |
Description |
---|---|---|
Percent |
|
A velocity unit that is measured in percentage. |
Rotations Per Minute |
|
A velocity unit that is measured in rotations per minute. |
Degrees Per Second |
|
A velocity unit that is measured in degrees per second. |
Voltage Units#
Name |
Python Enum |
Description |
---|---|---|
Volts |
|
A voltage unit that is measured in volts. |
Millivolts |
|
A voltage unit that is measured in millivolts. |