This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:nxt [2015/03/21 18:27] madlyr [Table] |
built_in:nxt [2015/04/18 18:02] (current) |
||
---|---|---|---|
Line 13: | Line 13: | ||
| [[nxt_brake|Brake( motors )]] | Commands the NXT brick to Brake one or more of it's motors.\\ The **motors** parameter can be a single motor, for example just " | | [[nxt_brake|Brake( motors )]] | Commands the NXT brick to Brake one or more of it's motors.\\ The **motors** parameter can be a single motor, for example just " | ||
| [[nxt_checkconnection|CheckConnection()]] | | [[nxt_checkconnection|CheckConnection()]] | ||
- | | [[nxt_connect|Connect( | + | | [[nxt_connect|Connect( |
| [[nxt_disconnect|Disconnect()]] | | [[nxt_disconnect|Disconnect()]] | ||
| [[nxt_drive|Drive( motors, power, rotation )]] | Commands the NXT brick to drive one or more of it's motors with a given power and number of rotations.\\ The **motors** parameter can be a single motor, for example just " | | [[nxt_drive|Drive( motors, power, rotation )]] | Commands the NXT brick to drive one or more of it's motors with a given power and number of rotations.\\ The **motors** parameter can be a single motor, for example just " | ||
Line 21: | Line 21: | ||
| [[nxt_getbtname|GetBtName( obj )]] | Returns Bluetooth name of a connected NXT brick or NXT brick name given as optional **obj** parameter. | | [[nxt_getbtname|GetBtName( obj )]] | Returns Bluetooth name of a connected NXT brick or NXT brick name given as optional **obj** parameter. | ||
| [[nxt_getcurrentprogram|GetCurrentProgram()]] | | [[nxt_getcurrentprogram|GetCurrentProgram()]] | ||
+ | | [[nxt_getrotationcount|GetRotationCount( motor)]] | ||
| [[nxt_isbluetoothenabled|IsBluetoothEnabled()]] | | [[nxt_isbluetoothenabled|IsBluetoothEnabled()]] | ||
| [[nxt_isconnected|IsConnected()]] | | [[nxt_isconnected|IsConnected()]] | ||
| IsEnabled() | | IsEnabled() | ||
| [[nxt_ismotoridle|IsMotorIdle( motor )]] | Checks if the specified **motor** (" | | [[nxt_ismotoridle|IsMotorIdle( motor )]] | Checks if the specified **motor** (" | ||
- | | [[nxt_ispaired|IsPaired( | + | | [[nxt_ispaired|IsPaired( |
| [[nxt_playsoundfile|PlaySoundFile( file, repeat )]] | Commands the NXT brick to play a sound file (.rso) file which is available on the brick.\\ The **file** parameter should be the name of the sound file and the **repeat** parameter should be number of times you want the sound to repeat. | | [[nxt_playsoundfile|PlaySoundFile( file, repeat )]] | Commands the NXT brick to play a sound file (.rso) file which is available on the brick.\\ The **file** parameter should be the name of the sound file and the **repeat** parameter should be number of times you want the sound to repeat. | ||
| [[nxt_readcolorsensor|ReadColorSensor( input, mode )]] | Reads the color currently being ' | | [[nxt_readcolorsensor|ReadColorSensor( input, mode )]] | Reads the color currently being ' |