Package lejos.utility
Class DebugMessages
- java.lang.Object
-
- lejos.utility.DebugMessages
-
public class DebugMessages extends java.lang.ObjectThis class has been developed to use it in case of you have to tests leJOS programs and you need to show in NXT Display data but you don't need to design a User Interface. This class is very useful to debug algorithms in your NXT brick.- Author:
- Juan Antonio Brenha Moral
-
-
Constructor Summary
Constructors Constructor Description DebugMessages()DebugMessages(int init)Constructor which the user establish in what line start showing messages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear LCDvoidecho(int message)Show in NXT Screen a messagevoidecho(java.lang.String message)Show in NXT Screen a messagevoidsetDelay(int dMs)Set the delay measured in MS.voidsetDelayEnabled(boolean de)Enable/Disabled if you need to show output with delayvoidsetLCDLines(int lines)Set the number of lines to show in the screen.
-
-
-
Method Detail
-
setLCDLines
public void setLCDLines(int lines)
Set the number of lines to show in the screen.- Parameters:
lines-
-
setDelayEnabled
public void setDelayEnabled(boolean de)
Enable/Disabled if you need to show output with delay- Parameters:
de-
-
setDelay
public void setDelay(int dMs)
Set the delay measured in MS.- Parameters:
dMs-
-
echo
public void echo(java.lang.String message)
Show in NXT Screen a message- Parameters:
message-
-
echo
public void echo(int message)
Show in NXT Screen a message- Parameters:
message-
-
clear
public void clear()
Clear LCD
-
-