diff --git a/README.rst b/README.rst index 389d6af..3180f13 100644 --- a/README.rst +++ b/README.rst @@ -74,7 +74,7 @@ This example displays sensor and input data on the CLUE display. clue.sea_level_pressure = 1020 - clue_data = clue.display_clue_data(title="CLUE Sensor Data!", title_scale=2, num_lines=15) + clue_data = clue.simple_text_display(title="CLUE Sensor Data!", title_scale=2, num_lines=15) while True: clue_data[0].text = "Acceleration: {:.2f} {:.2f} {:.2f}".format(*clue.acceleration) diff --git a/adafruit_clue.py b/adafruit_clue.py index 52edc3f..6dc69db 100644 --- a/adafruit_clue.py +++ b/adafruit_clue.py @@ -869,7 +869,7 @@ def simple_text_display(title=None, title_color=(255, 255, 255), title_scale=1, Setup occurs before the loop. For data to be dynamically updated on the display, you must include the data call in the loop by using ``.text =``. For example, if setup is saved as - ``clue_data = display_clue_data()`` then ``clue_data[0].text = clue.proximity`` must be + ``clue_data = simple_text_display()`` then ``clue_data[0].text = clue.proximity`` must be inside the ``while True:`` loop for the proximity data displayed to update as the values change. You must call ``show()`` at the end of the list for anything to display. See example below for usage.