On("motor/motors"); | Turns on these motors |
Off("motor/motors"); | Turns off these motors(hard) |
Float("motor/motors"); | Turns off these motors(soft) |
Fwd("motor/motors"); | Turn these motors on forward |
Rev("motor/motors"); | Turn thesee motors on reverse |
Toggle("motor/motors"); | Swap forware and reverse |
OnFwd("motor/motors"); | Turn the motors on forward |
OnRev("motor/motors"); | Turn the motors on reverse |
SetPower("motor/s", Power); | Power value 0-9 for the
specified motors |
SetDirection("motor/s","Direction"); |
Set the direction of the motors
specified OUT_FWD OUT_REV OUT_TOGGLE |
SetOutput("motor/s","Type") |
Sets these motors to this type
of output OUT_ON OUT_OFF OUT_FLOAT |
OnFor("motor/s", time ) |
Turns the motors on for the
specified amount of time (Time in milliseconds) 1000 = 1 second |
SetSensor("sensor",type); | Sets the sensor "sensor" to the
specified type SENSOR_TOUCH (0 or 1) SENSOR_LIGHT (integer valued) |
int x = SENSOR_1; |
Sets x to the value of SENSOR_1 |
SetSensorType("sensor", type); | Sets the sensor "sensor" to the
specified type SENSOR_TYPE_TOUCH SENSOR_TYPE_LIGHT SENSOR_TYPE_TEMPERATURE SENSOR_TYPE_ROTATION |
SetSensorMode("sensor", type); | Sets the sensor "sensor" to the
specified mode SENSOR_MODE_RAW (0-1023) SENSOR_MODE_EDGE (# of all transitions) SENSOR_MODE_PULSE (# of High transitions) SENSOR_MODE_PERCENT (0-100) SENSOR_MODE_ROTATION (0-16) SENSOR_MODE_CELSIUS SENSOR_MODE_FAHRENHEIT SENSOR_MODE_BOOL (0-1) |
ClearSensor("sensor"); | Clears the particular
sensor(Edge counters). |
SelectDisplay(mode) |
Sets the display to the
specified variable DISPLAY_WATCH DISPLAY_SENSOR_1 DISPLAY_SENSOR_2 DISPLAY_SENSOR_3 DISPLAY_OUT_A DISPLAY_OUT_B DISPLAY_OUT_C |
SetUserDisplay (var,places); | sets the LCD to show the
variable "var" to the specified number of places "places". |