Hack debugging of asynchronous logic for digitalRead
digitalWrite/analogWrite: only call callback if provided