mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
@@ -450,7 +450,7 @@ public class GPIO {
|
||||
* @webref
|
||||
*/
|
||||
public static void waitFor(int pin, int mode) {
|
||||
waitForInterrupt(pin, mode, -1);
|
||||
waitFor(pin, mode, -1);
|
||||
}
|
||||
|
||||
|
||||
@@ -458,8 +458,6 @@ public class GPIO {
|
||||
* Waits for the value of an input pin to change
|
||||
*
|
||||
* This function will throw a RuntimeException in case of a timeout.
|
||||
* @param pin GPIO pin
|
||||
* @param mode what to wait for: GPIO.CHANGE, GPIO.FALLING or GPIO.RISING
|
||||
* @param timeout don't wait more than timeout milliseconds
|
||||
* @webref
|
||||
*/
|
||||
@@ -513,19 +511,4 @@ public class GPIO {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Waits for the value of an input pin to change
|
||||
*
|
||||
* Make sure to setup the interrupt with enableInterrupt() before calling
|
||||
* this function. This function will wait indefinitely for an interrupt
|
||||
* to occur.
|
||||
* @parm pin GPIO pin
|
||||
* @see enableInterrupt
|
||||
* @see disableInterrupt
|
||||
*/
|
||||
protected static void waitForInterrupt(int pin) {
|
||||
waitForInterrupt(pin, -1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user