lejos.remote.nxt.NXJFirmwareInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
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 + ")";
}
}