powered by
Set a analog pin to on or off
setApin(pin, value)
the number of the pin to set (integer)
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() # } # NOT RUN { # }
Run the code above in your browser using DataLab