Arduino Plotter
1 2 3 | ar_plotter(fd, names = NULL, sep_fun = ar_sep_comma,
reduce_freq = TRUE, flush_time = 0.05, eolchar = "\n",
buf_max = 256, timeout = 5000)
|
fd |
File descriptor returned by |
names |
Labels for variables |
sep_fun |
A function that separates the inline string into different
variables. By default, it is |
reduce_freq |
T/F. It might be the case that plotly streaming API can't process frequency > 25 Hz (40ms delay time) or it might be the case that my computer doesn't have enough power. Anyway, I set this option here to add 40ms delay time to reduce the sampling frequency. |
flush_time |
Time to flush buffed results in the serial channel |
eolchar |
End of line character. Default value is |
buf_max |
Maximum length of one line of entry. Default is 256. |
timeout |
Timeout for reads in millisecs. Default is 5000 ms. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.