Skip to content

Commit 06347fc

Browse files
authored
Merge pull request #2 from makermelissa/main
Fix a few things so it passes GitHub Actions
2 parents 92f3df7 + b76e2aa commit 06347fc

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"socketpool",
3434
"secrets",
3535
"analogio",
36+
"touchio",
3637
]
3738

3839
intersphinx_mapping = {

examples/funhouse_adafruit_io_mqtt.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#
44
# SPDX-License-Identifier: MIT
55
import time
6-
import random
76
import board
87
import adafruit_dps310
98
import adafruit_ahtx0
@@ -13,11 +12,7 @@
1312
dps310 = adafruit_dps310.DPS310(i2c)
1413
aht20 = adafruit_ahtx0.AHTx0(i2c)
1514

16-
funhouse = FunHouse(
17-
default_bg=0x0F0F00,
18-
scale=2,
19-
)
20-
15+
funhouse = FunHouse(default_bg=None)
2116
funhouse.peripherals.set_dotstars(0x800000, 0x808000, 0x008000, 0x000080, 0x800080)
2217

2318
# pylint: disable=unused-argument
@@ -63,8 +58,8 @@ def message(client, feed_id, payload):
6358
while True:
6459
funhouse.network.mqtt_loop()
6560

66-
funhouse.set_text("Temp %0.1F" % dps310.temperature, temp_label)
67-
funhouse.set_text("Pres %d" % dps310.pressure, pres_label)
61+
print("Temp %0.1F" % dps310.temperature)
62+
print("Pres %d" % dps310.pressure)
6863

6964
# every 10 seconds, write temp/hum/press
7065
if (time.monotonic() - sensorwrite_timestamp) > 10:

0 commit comments

Comments
 (0)