#include <otPlot.h>
Public Member Functions | |
| otPlot () | |
| bool | init (S16 xpos, S16 ypos, S16 xdim, S16 ydim, otGraphics *lcdInt) |
| void | close () |
| void | setRange (F32 min, F32 max) |
| void | plot (bool clear=true) |
| void | plot (U16 col) |
| void | setData (F32 *data) |
| void | setData (S16 *data) |
| void | setData (U32 *data, bool save=false) |
| void | autorange () |
| void | clear (F32 val=0.0f) |
| void | addData (F32 data) |
| void | setGridStep (U8 step) |
| void | update () |
| void | grid () |
|
|
Create the class |
|
|
Add a point to the data buffer, previous values are shifted to the right.
|
|
|
Find a new min/max of the internal buffer |
|
|
Clear, or set a specified value, the internal buffer.
|
|
|
Close all allocated memory |
|
|
Plot the grid. |
|
||||||||||||||||||||||||
|
Init the class
|
|
|
Plot with selected color the print buffer, no other operations is allowed.
|
|
|
Plot data on LCD. It is a high-level operation that (optional) deletes the previous plot, updates the print buffer, plot the grid and executes the data plot.
|
|
||||||||||||
|
Set new data in the buffer
|
|
|
Set new data in the buffer
|
|
|
Set new data in the buffer
|
|
|
Set grid spacing
|
|
||||||||||||
|
Set the plot range
|
|
|
Buffer merge. |