The leJOS NXJ Menu System
|
The leJOS NXJ Menu System
Main menuWhen 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:
Selecting "Run Default" will run the default program if one is set. The default program can be set from the Files menu. Back to topFiles menuWhen 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 System menuThis menu shows some information about the status of the NXT, and allows you to change some of these variables.
Bluetooth menuThis 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 topDevicesThe 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 topSearchSelecting “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 topSoundMYNXT 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. VersionMYNXT BT Firmware Version 1.0 (rev. 2260) Menu Version 1.0 (rev 2260) This menu is for information only. Back to top |