![]() |
RCX Index | Contents | Master Index |
Sensors | Outputs | Sound | Timers | Communication | LCD Display | Data Logging | Misc. Features |
SENSORS | ||
SetSensor() | Set the type and mode of the given sensor to the specified configuration. | |
SetSensorType() | Set a sensor's type. | |
SetSensorMode() | Set a sensor's mode. | |
ClearSensor() | Clear the value of a sensor. | |
SensorValue() | Returns the processed sensor reading for sensor n. | |
SensorType() | Returns the configured type of sensor n. | |
SensorMode() | Returns the current sensor mode for sensor n. | |
SensorValueBool() | Returns the boolean value of sensor n. | |
SensorValueRaw() | Returns the raw value of sensor n. | |
OUTPUTS | ||
SetOutput() | Set the outputs to the specified mode. | |
SetDirection() | Set the outputs to the specified direction. | |
SetPower() | Sets the power level of the specified outputs. | |
On() | Turn specified outputs on. | |
Off() | Turn specified outputs off. | |
Float() | Make outputs float. | |
Fwd() | Set outputs to forward direction. | |
Rev() | Set outputs to reverse direction. | |
Toggle() | Flip the direction of the outputs. | |
OnFwd() | Set outputs to forward direction and turn them on. | |
OnRev() | Set outputs to reverse direction and turn them on. | |
OnFor() | Turn outputs on for a specified amount of time. | |
OutputStatus() | Returns the current output setting for motor n. | |
SOUND | ||
PlaySound() | Plays one of the 6 preset RCX sounds. | |
PlayTone() | Plays a single tone of the specified frequency and duration. | |
TIMERS | ||
ClearTimer() | Reset the specified timer to 0. | |
Timer() | Return the current value of specified timer (in 100ms resolution). | |
COMMUNICATION | ||
ClearMessage() | Clear the message buffer. | |
SendMessage() | Send an IR message. | |
SetTxPower() | Set the power level for IR transmission. | |
Message() | Returns the most recently received message. | |
LCD DISPLAY | ||
SelectDisplay() | Select a display mode. | |
DATA LOGGING | ||
CreateDatalog() | Create a datalog of the specified size (which must be a constant). | |
AddToDatalog() | Add the value. | |
UploadDatalog() | Initiate and upload of count data points beginning at start. | |
MISC. FEATURES | ||
Wait() | Make a task sleep for specified amount of time (in 100ths of a second). | |
StopAllTasks() | Stop all currently running tasks. | |
SetSleepTime() | Set the sleep timeout the requested number of minutes (which must be a constant). | |
SleepNow() | Force the device to go to sleep. | |
SetWatch() | Set the system watch to the specified number of hours and minutes. | |
Random() | Return a random number between 0 and n. | |
Program() | Number of the currently selected program. | |
Watch() | Return the value of the system clock in minutes. |