This shows you the differences between two versions of the page.
built_in:nxt [2015/03/10 15:33] madlyr [Table] |
built_in:nxt [2015/04/18 18:02] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== NXT control ====== | ||
- | |||
- | The NXT object is used to manage the connection between your Android phone and the NXT brick. | ||
- | |||
- | ===== Description ===== | ||
- | Create an NXT object using the **CreateNxt** function of the **[[built_in: | ||
- | < | ||
- | |||
- | ===== Methods ===== | ||
- | ^ Method | ||
- | | [[nxt_beep|Beep(frequency, | ||
- | | [[nxt_brake|Brake(motors)]] | ||
- | | [[nxt_checkconnection|CheckConnection()]] | ||
- | | [[nxt_disconnect|Disconnect()]] | ||
- | | [[nxt_drive|Drive(motors, | ||
- | | [[nxt_getcurrentprogram|GetCurrentProgram()]] | ||
- | | [[nxt_isbluetoothenabled|IsBluetoothEnabled()]] | ||
- | | IsConnected() | ||
- | | IsEnabled() | ||
- | | [[nxt_ismotoridle|IsMotorIdle(motor)]] | ||
- | | [[nxt_playsoundfile|PlaySoundFile(file, | ||
- | | [[nxt_readcolorsensor|ReadColorSensor(input, | ||
- | | [[nxt_readdistancesensor|ReadDistanceSensor(input)]] | ||
- | | [[nxt_readmail|ReadMail(mailbox, | ||
- | | [[nxt_readlightsensor|ReadLightSensor(input, | ||
- | | [[nxt_readtouchsensor|ReadTouchSensor(input)]] | ||
- | | [[nxt_readsoundsensor|ReadSoundSensor(input, | ||
- | | [[nxt_requestenable|RequestEnable()]] | ||
- | | [[nxt_sendmail|SendMail(mailbox, | ||
- | | [[nxt_setinvert|SetInvert(boolean)]] | ||
- | | [[nxt_setlampcolor|SetLampColor(input, | ||
- | | [[nxt_setonconnected|SetOnConnected(myfunc)]] | ||
- | | [[nxt_showdevices|ShowDevices()]] | ||
- | | [[nxt_startprogram|StartProgram(program)]] | ||
- | | [[nxt_stop|Stop(motors)]] | ||
- | | [[nxt_stopprogram|StopProgram()]] | ||
- | | ToColorName(colorNum) |