Open emersonsc opened 1 year ago
Is this project dead?
Only import pybadger here:
from adafruit_pybadger import pybadger
from adafruit_clue import clue
The PyBadge library will auto detect what board is being used and then import any additional libraries as needed.
The second import from the CLUE library is causing hardware that has already been initialized by the PyBadge library (via the first import) to try to be initialized a second time, but the hardware is already in use. That is what is causing the error.
See examples: https://github.com/adafruit/Adafruit_CircuitPython_PyBadger/blob/main/examples/pybadger_clue_custom_badge.py https://github.com/adafruit/Adafruit_CircuitPython_PyBadger/blob/main/examples/pybadger_clue_custom_image_badge.py
Im trying to display the Temp and humidity data using the sensors built in to the Clue, but i tried using the code bellow, but i get an error: Traceback (most recent call last): File "code.py", line 7, in
File "adafruit_clue.py", line 930, in
File "adafruit_clue.py", line 195, in init
ValueError: P5 in use