Exception with drawString() in lejos 0.4

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Exception with drawString() in lejos 0.4

Postby bas » Sat Oct 27, 2007 9:55 am

Hi,

I've got a problem with using drawString() for the LCD. I have a loop like this:

Code: Select all
LightSensor ls=new LightSensor(SensorPort.S1);

while( !Button.ENTER.isPressed() )
{
  LCD.drawString("Light =", 0, 0);
  LCD.drawInt((int)ls.readValue() , 9, 0);
  LCD.refresh();
}


After some seconds I always obtain an (uncatchable?) Exception: Class 5 (which is notifyAll() w.r.t. -verbose) and method 0 (main method).
When I remove the call for drawString(), the code works as expected: an infinite loop printing sensor values.

Any idea?

Thanks,
Sebastian
bas
New User
 
Posts: 3
Joined: Sat Oct 27, 2007 9:47 am

Postby bas » Sat Oct 27, 2007 10:10 am

Nvm, I found the solution in another thread:
viewtopic.php?t=452
bas
New User
 
Posts: 3
Joined: Sat Oct 27, 2007 9:47 am


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

more stuff