This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:nxt [2015/03/10 16:24] madlyr [Methods] |
built_in:nxt [2015/03/21 18:13] madlyr [Methods] |
||
---|---|---|---|
Line 2: | Line 2: | ||
- | The NXT object is used to manage the connection between your Android phone and the NXT brick. | + | The NXT object is used to manage the connection between your Android phone and the Lego Mindstorms |
===== Description ===== | ===== Description ===== | ||
Line 12: | Line 12: | ||
| [[nxt_beep|Beep(frequency, | | [[nxt_beep|Beep(frequency, | ||
| [[nxt_brake|Brake(motors)]] | | [[nxt_brake|Brake(motors)]] | ||
- | | [[nxt_checkconnection|CheckConnection()]] | + | | [[nxt_checkconnection|CheckConnection()]] |
+ | | [[nxt_connect|Connect( p1 )]] | Connect | ||
+ | | | ||
| [[nxt_disconnect|Disconnect()]] | | [[nxt_disconnect|Disconnect()]] | ||
| [[nxt_drive|Drive(motors, | | [[nxt_drive|Drive(motors, | ||
+ | | [[nxt_filefindfirst|FileFindFirst( p1 )]] | FileFindFirst | ||
+ | | | ||
+ | | [[nxt_filefindnext|FileFindNext( p1 )]] | FileFindNext | ||
+ | | | ||
+ | | [[nxt_getbtaddress|GetBtAddress(obj)]] | ||
+ | | [[nxt_getbtname|GetBtName(obj)]] | ||
| [[nxt_getcurrentprogram|GetCurrentProgram()]] | | [[nxt_getcurrentprogram|GetCurrentProgram()]] | ||
| [[nxt_isbluetoothenabled|IsBluetoothEnabled()]] | | [[nxt_isbluetoothenabled|IsBluetoothEnabled()]] | ||
- | | IsConnected() | + | | [[nxt_isconnected|IsConnected()]] |
| IsEnabled() | | IsEnabled() | ||
| [[nxt_ismotoridle|IsMotorIdle(motor)]] | | [[nxt_ismotoridle|IsMotorIdle(motor)]] | ||
Line 31: | Line 39: | ||
| [[nxt_setinvert|SetInvert(boolean)]] | | [[nxt_setinvert|SetInvert(boolean)]] | ||
| [[nxt_setlampcolor|SetLampColor(input, | | [[nxt_setlampcolor|SetLampColor(input, | ||
- | | [[nxt_setonconnect|SetOnConnect(myfunc)]] | + | | [[nxt_setonconnect|SetOnConnect(myfunc)]] |
| [[nxt_setonconnected|SetOnConnected(myfunc)]] | | [[nxt_setonconnected|SetOnConnected(myfunc)]] | ||
| [[nxt_showdevices|ShowDevices()]] | | [[nxt_showdevices|ShowDevices()]] |