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
