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