Skip to content

'display_clue_data' Error #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jedgarpark opened this issue Feb 5, 2020 · 1 comment
Closed

'display_clue_data' Error #4

jedgarpark opened this issue Feb 5, 2020 · 1 comment

Comments

@jedgarpark
Copy link

jedgarpark commented Feb 5, 2020

Tried this example: https://circuitpython.readthedocs.io/projects/clue/en/latest/api.html#adafruit_clue.Clue.simple_text_display

from adafruit_clue import clue

clue_data = clue.display_clue_data(title="CLUE Sensor Data!", title_scale=2, num_lines=3)

while True:
    clue_data[0].text = "Acceleration: {:.2f} {:.2f} {:.2f}".format(*clue.acceleration)
    clue_data[1].text = "Gyro: {:.2f} {:.2f} {:.2f}".format(*clue.gyro)
    clue_data[2].text = "Magnetic: {:.3f} {:.3f} {:.3f}".format(*clue.magnetic)

get this error:

File "code.py", line 3, in <module>
AttributeError: 'Clue' object has no attribute 'display_clue_data'
@kattni
Copy link
Contributor

kattni commented Feb 5, 2020

Fixed in #5

@kattni kattni closed this as completed Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants