setDpin {Rduino} | R Documentation |
Set a digital pin to on or off
setDpin(pin, value)
pin |
the number of the pin to set (integer) |
value |
the value to which to set the pin (binary) |
## Not run: rduinoConnect() # flash LED rapidly for (i in 0:9) { setDpin(8,1) Sys.sleep(0.05) setDpin(8,0) Sys.sleep(0.05) } rduinoClose() ## End(Not run)