setApin {Rduino} | R Documentation |
Set a analog pin to on or off
setApin(pin, value)
pin |
the number of the pin to set (integer) |
value |
the value to which to set the pin (real) |
## Not run:
rduinoConnect()
# gradually increase intensity of LED
for (i in seq(1,256,by=5))
{
setApin(11,i)
Sys.sleep(0.05)
}
rduinoClose()
## End(Not run)