Description Usage Arguments Examples
Set a analog pin to on or off
1 | setApin(pin, value)
|
pin |
the number of the pin to set (integer) |
value |
the value to which to set the pin (real) |
1 2 3 4 5 6 7 8 9 10 11 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.