- Code: Select all
public void stateChanged(SensorPort port, int oldValue, int newValue) {
//TouchSensor pressed
if(newValue == ???)
{
//do something
}
}
PS: I printed the values to the LCD, but they were something like 1023 and 1843 or 1833. When I tried using these values in my program, it didn´t work though...
Can someone tell me what values I can work with or point me to the documentation about them?
