It's Holiday Sale Weekend at Adafruit - use the code ADATY to get 15% off items storewide! Some restrictions apply.
0

ADABOX015 BBQLUE code
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ADABOX015 BBQLUE code

by gadgeteer on Fri Sep 10, 2021 10:51 am

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 | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
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!

gadgeteer
 
Posts: 19
Joined: Wed Oct 24, 2012 10:50 am

Please be positive and constructive with your questions and comments.