Skip to content

Commit 29cce55

Browse files
authored
Update README.md
1 parent a531368 commit 29cce55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ _by: Devin Conley_
2424
### Extremely easy usage:
2525
```arduino
2626
#include "Plotter.h"
27-
double x;
2827
28+
double x; // global variables
2929
Plotter p;
3030
3131
void setup()
3232
{
33-
p = Plotter();
33+
p = Plotter(); // create plotter
3434
35-
p.AddTimeGraph( "Some title of a graph", 500, "label for x", x );
35+
p.AddTimeGraph( "Some title of a graph", 500, "label for x", x ); // add any graphs you want
3636
}
3737
3838
void loop()
3939
{
40-
x = 10*sin( 2.0*PI*( millis() / 5000.0 ) );
40+
x = 10*sin( 2.0*PI*( millis() / 5000.0 ) ); // update your variables like usual
4141
42-
p.Plot(); // usually called within loop()
42+
p.Plot(); // plot all current data -- usually called within loop()
4343
}
4444
```
4545

0 commit comments

Comments
 (0)