1.3.0
- Added
waitForValue
method which can be used to wait (and thus block) until a pin is of a given value.
/**
* Queues up an instruction that waits until the pin is of the given value before continuing execution.
* > This instruction blocks all further scripts until the pin is of the given value.
* @param pinValue the pin value to wait for. defaults to 1 (HIGH)
*/
waitForValue(pinValue: PinValue = 1){...}