All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lejos.remote.nxt.NXJFirmwareInfo Maven / Gradle / Ivy

Go to download

leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.

The newest version!
package lejos.remote.nxt;

/**
 * Information about leJOS NXJ firmware and menu
 * 
 * @author Lawrie Griffiths
 *
 */
public class NXJFirmwareInfo {
	public byte firmwareMajorVersion;
	public byte firmwareMinorVersion;
	public byte firmwarePatchLevel;
	public int firmwareRevision;
	public byte menuMajorVersion;
	public byte menuMinorVersion;
	public byte menuPatchLevel;
	public int menuRevision;
	
	/**
	 * Get the full firmware version
	 * 
	 * @return the firmware version as a string
	 */
	public String getFirmwareVersion() {
		return firmwareMajorVersion + "." + firmwareMinorVersion + "." + firmwarePatchLevel + "(" + firmwareRevision + ")";
	}
	
	/**
	 * Get the full firmware version
	 * 
	 * @return the firmware version as a string
	 */
	public String getMenuVersion() {
		return menuMajorVersion + "." + menuMinorVersion + "." + menuPatchLevel + "(" + menuRevision + ")";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy