ADABOX015 BBQLUE code

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gadgeteer
 
Posts: 24
Joined: Wed Oct 24, 2012 10:50 am

ADABOX015 BBQLUE code

Post by gadgeteer »

When I tried running the code in the project bundle for the ADABOX015 CircuitPython BLE Multi-Temperature Monitoring BBQLUE project, I received an adafruit_display_text library error about the label text parameter needing to be pre-populated. I used the latest (6.3.0) C-Py for CLUE and the latest (20210908) library bundle.

The project photos show a default 3 dashes in the temperature labels. I added them (see below) and the code ran properly.

Before:

Code: Select all

my_labels_config = [
    (0, "", GREEN, 2, 100),
    (1, "", BLUE, 2, 150),
    (2, "", RED, 2, 200),
    (3, "", ORANGE, 135, 100),
    (4, "", YELLOW, 135, 150),
    (5, "", PURPLE, 135, 200),
]
After:

Code: Select all

my_labels_config = [
    (0, "---", GREEN, 2, 100),
    (1, "---", BLUE, 2, 150),
    (2, "---", RED, 2, 200),
    (3, "---", ORANGE, 135, 100),
    (4, "---", YELLOW, 135, 150),
    (5, "---", PURPLE, 135, 200),
]
This needs to be fixed in both the 6.x and 7.x project bundles.
By the way, I used an InkBird IBT-2X thermometer with the Clue, which worked perfectly.
Fun Project, Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”