The NXT object is used to manage the connection between your Android phone and the Lego Mindstorms NXT brick.
nxt = app.CreateNxt( ) → app object: Nxt
Note: This function is deprecated. Please install and visit the NXT-Docs from the Plugins page
Properties
The following properties are available on the Nxt object:
Methods
The following methods are available on the Nxt object:
Batch(
properties )
CheckConnection() → Boolean
FileFindFirst(
pattern )
→ String
FileFindNext(
handle )
→ String
GetBtAddress() → String
GetBtName() → String
GetCurrentProgram() → String
GetRotationCount(
motor )
→ Number: integer
GetType() → String: “Nxt”
IsBluetoothEnabled() → Boolean
IsConnected() → Boolean
IsEnabled() → Boolean
IsMotorIdle(
motor )
→ Boolean
ReadDistanceSensor(
input )
→ Number: float
ReadTouchSensor(
input )
→ Boolean
StartProgram(
name )