The leJOS NXJ Menu System


The leJOS NXJ Menu System

Main menu

When leJOS NXJ starts, it displays the leJOS NXJ logo for 3 seconds and then displays the main menu:

   MYNXT  BT

>Run Default

 Files

 Bluetooth

 Sound

 System

 Version

The top line shows the battery voltage icon,the name of the NXT, and the BlueTooth power icon. In this example, the power is on.

It then shows a menu implemented by the TextMenu class. You can use the keys to navigate the menu:

Key

Name

Use

Left Button.


Left,Right

Scroll up , down

Enter Button

Enter

Select the menu item



Escape

Quit the menu and return to the previous one..
In the main menu, shut down the NXT

Selecting "Run Default" will run the default program if one is set. The default program can be set from the Files menu.

Back to top

Files menu

When you select the “Files” menu item, the list of files is displayed:

MYNXT BT

>View.nxj

 SoundScope.nxj

 LCDTest.nxj

When you select a particular file, the file submenu is displayed:

MYNXT BT

View

>Execute program

 Set as Default

 Delete file

Back to top

System menu

This menu shows some information about the status of the NXT, and allows you to change some of these variables.

  • Free flash
  • Battery voltage
  • Free ram
  • Format
    Wipes out the flash memory, deleting all files.
  • Sleep Time
    is the number of seconds before the NXT shuts down in the absence of any activity (button presses or program running) You can change the setting by pressing the ENTER button. Zero means never.
  • Auto run
    If this is turned on, the default program immediately starts running when the NXT is powered up, instead of displaying the main menu. You can disable the auto run by holding down the left button during start up.

Back to top

Bluetooth menu

This menu allows you to control the Bluetooth chip. When power is off, the menu looks like this::

MYNXT BT

Bluetooth

Status off

>Power on

This saves battery power, but Bluetooth communication to or from the NXT is not possible. Pressing Enter turns the power on.

When the power is on, the menu looks like this

MYNXT BT

Bluetooth

Status on vis

>Power off

 Search and Pair

 Devices

 Visibility

 Change PIN

The status line shows if power is on and where the device is visible to Bluetooth searches.

The Visibility menu item switches visibility of the devices to Bluetooth inquiries on and off. When it is on the status line displays “vis” and when it is off, “invis”.

Back to top

Devices

The Devices menu item lists the devices currently in the Known Devices list for you NXT.

Devices

>NXT1

 NXT2

 HOLUX_M-1200

Selecting a specific device will show details of it:

Devices

NXT1

001653007848

0 0 0 4

>Remove

The first line give the name, the second the address, and the third the status of the four possible Bluetooth connections.

The “Remove” menu item allows the device to be removed from the Known device list.

Back to top

Search

Selecting “Search” from the Bluetooth menu, starts a Bluetooth inquiry. The display is cleared and the first line displays “Searching…”. This takes about 10 seconds.

When the search is finished a menu of all the Bluetooth devices found, is displayed:

Found

>NXT1

 HOLUX_M-1200

 MyPhone

All discoverable devices that support an SPP profile are displayed. This includes other NXT, GPS devices, mobile phones etc.

Selecting one of the devices gives the following display:

Found

NXT1

001653007848


>Add


Selecting Add, adds the device to the list of know devices. This makes connecting to the devices from leJOS programs much easier.

Back to top

Sound

MYNXT BT

Sound

>Volume: 8

 KeyClick 6


With this menu, you can set the default system sound Volume and the Key Clock volume. Click the Enter key to scroll through the options.

Version

MYNXT BT

Firmware Version

1.0 (rev. 2260)

Menu Version

1.0 (rev 2260)

This menu is for information only.

Back to top