The leJOS NXJ Menu System
When leJOS NXJ starts, it displays the leJOS NXJ logo for 3 seconds and then displays the main menu:
The top line shows the battery voltage icon,the name of the NXT, indicators for active USB and Bluetooth connections, and the Bluetooth power icon. In this example, the power is on, but USB and Bluetooth are not connected.
It then shows a graphic menu of icons. The selected icon is raised in the center and its name is displayed. You can use the keys to navigate the menu:
Pressing Enter when "Run Default" is displayed will run the default program if one is set. The default program can be set from the Files menu. Note that if you set the "Auto Run" option from the System menu, the default program will run automatically on start up, instead of this menu.Back to top
Pressing the right button will display the Files icon:
Selecting "Files" will show a list of files using the TextMenu class.
You can move through the menu using the left and right buttons. It will scroll up and down if there are more files than will fit on the screen and it will wrap round when you reach the top or bottom of the list.
When you select a particular file with the Enter button, the file submenu is displayed:
For any file a "Delete File" option is available. For program files (.nxj), you can execute the program or set it as the default program. For sound files, you can play the sound sample.Back to top
Pressing the right arrow from the Files menu icon, displays the Bluetooth menu icon:
Pressing ENTER shows the Power On/Power Off Bluetooth submenu. This is the version when the power is on:
The status lines at the top show if power is on or off to the Bluetooth chip, and whether the device is visible to Bluetooth searches.
Switching the power off to the Bluetooth chip, increases battery life, but no Bluetooth capability is available until the power is switched back on.
Press ENTER to switch the power off or back on.
Pressing the right Button from the Power On/Off submenu, shows the Search/Pair submenu.
Pressing Enter 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:
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:
Pressing Enter lets you pair the selected device with your NXT and adds it to the list of known devices. This makes connecting to the device from leJOS programs much easier.
When you press Enter to pair the device, a submenu is displayed for you to enter the pin for the selected device. You may need to go to the selected device and Enter the pin on that device as well.
To enter the 4 digit pin on the NXT, press the left and right buttons to increment or decrement the current digit, and Press Enter to go on to the next one. When you press Enter on the last digit, the pairing will take place. The current digit has is displayed in a box to highlight it.
Pressing the right button from the Search/Pair submenu icon, takes you to the Devices submenu icon:
Pressing enter shows the devices currently in the Known Devices list for your NXT:
Selecting a specific device will show details of it:
The first line gives the name and the second the address.
Press Enter to remove the device from the Known devices list.
Pressing the right button from the Devices submenu, shows the Visibility submenu:
Pressing Enter on the Visibility submenu switches visibility of the NXT device to Bluetooth inquiries on and off. The status is shown on the Visibility line at the top of the screen.
Pressing ENTER from the Visibility submenu, displays the Change Pin submenu:
Press Enter to get the Enter NXT Pin submenu:
This lets you change the pin for your NXT. The pin is required when you pair your NXT from another device. It is preset to 1234.
To enter the 4 digit pin, press the left and right buttons to increment or decrement the current digit, and Press Enter to go on to the next one. When you press Enter on the last digit, the pairing will take place. The current digit has is displayed in a box to highlight it.
Press the right button from the Bluetooth menu item, displays the Sound menu icon:
Press Enter and the Volume submenu is displayed. Click the Enter key to increase the main volume. After 10 it wraps round to mute (sound off). Presing it again increases the sound from level 1 upwards.
Press the right button from the Volume submenu and the Key Click submenu is displayed.
This sets the volume of the sound when a key is clicked. It works the same as the Volume submenu.
Pressing the right button from the Sound menu icon, displays the System menu icon:
Selecting this shows information about the current state of the NXT brick, and allows you to format (wipe clean) the file system.
This submenu shows some information about the status of the NXT, and allows you to change some of these variables.
The free flash memory and free RAM are displayed in bytes. An "R" after the battery voltage indicates that a rechargable battery pack is in use.
Press Enter to format the file system and wipe out all files. A submenu of Yes and No is diaplayed, defaulted to No, to confirm the operation. Press the left or right arrows to select Yes, and then press Enter to format the filesystem.
Pressing right arrow when the Format submenu is diaplayed, shows the sleep time submenu:
Press Enter to increment the sleep time. It is in minutes. The maxiumum value is 10 minutes. Pressing Enter when 10 is displayed, sets the sleep timer off. Pressing Enter again starts incrementing it starting at 1.
Pressing the right button when the Sleep time submenu is displayed, takes you to the Auto Run submenu:
Auto run defaults to off. It can only be switched on if a default program has been defined. When it is on the default program will be run automatically on start up, instead of this menu. You can disable this and cause the menu to be displayed by pressing the left button during start up.
Pressing the right button from the System menu icon, displays the Version menu icon:
Selecting this item, displays the version of the firmware and the menu.
This menu is for information only.Back to top