This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

thingz.thingz_display.Plot

Thingz Display Plot

class thingz.thingz_display.Plot.Plot

Use the LCD as a plot

show() None

Show the plot

add_point(value: int | float) None

Add a new point to the plot.

Parameters:

value (int|float) – The position on the Y axis of new point

set_y_scale(min: int, max: int) None

Set the scale of the plot

Parameters:
  • min (int) – The min value of the Y axis

  • max (int) – The max value of the Y axis

set_animate_function(func: Callable, interval: int) None

Configure a function that will be called once every interval to add a point to the plot. The function must return the value of the new point

Parameters:
  • func (Callable) – The function to call

  • interval (int) – Time to wait between each function call, in seconds