rpi_monitor | R Documentation |
Watch a Raspberry pi GPIO pin (or pins) for changes.
rpi_monitor(pin_number, numEvents = 0, edge = "both")
pin_number |
one or more pin numbers as found on the Raspberry pi GPIO. Use the actual pin numbers (i.e. 1:40) |
numEvents |
a number of events to collect. Defaults to 10 |
edge |
rising|falling|both |
a list of events
raw text of each event
event: RISING EDGE|FALLING EDGE
line: the bcm line (not board pin) exhibiting change
timestamp: seconds component
timestamp: nanoseconds component
rpi_monitor(21)
rpi_monitor(21, numEvents=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.