getDpin {Rduino} | R Documentation |
Get the value of a digital pin
getDpin(pin)
pin |
the number of the pin to get (integer) |
the binary value of the pin.
## Not run: rduinoConnect() # LED remains on until button is pressed setDpin(5,1) isPressed<-getDpin(4) while (!isPressed){ isPressed<-getDpin(4) } setDpin(5,0) rduinoClose() ## End(Not run)