Skip to content

Commit cc05c2a

Browse files
committed
change display_clue_data to simple_text_display in readme and docstring
1 parent a50fcb6 commit cc05c2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ This example displays sensor and input data on the CLUE display.
7474
7575
clue.sea_level_pressure = 1020
7676
77-
clue_data = clue.display_clue_data(title="CLUE Sensor Data!", title_scale=2, num_lines=15)
77+
clue_data = clue.simple_text_display(title="CLUE Sensor Data!", title_scale=2, num_lines=15)
7878
7979
while True:
8080
clue_data[0].text = "Acceleration: {:.2f} {:.2f} {:.2f}".format(*clue.acceleration)

adafruit_clue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def simple_text_display(title=None, title_color=(255, 255, 255), title_scale=1,
869869
870870
Setup occurs before the loop. For data to be dynamically updated on the display, you must
871871
include the data call in the loop by using ``.text =``. For example, if setup is saved as
872-
``clue_data = display_clue_data()`` then ``clue_data[0].text = clue.proximity`` must be
872+
``clue_data = simple_text_display()`` then ``clue_data[0].text = clue.proximity`` must be
873873
inside the ``while True:`` loop for the proximity data displayed to update as the
874874
values change. You must call ``show()`` at the end of the list for anything to display.
875875
See example below for usage.

0 commit comments

Comments
 (0)