Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"socketpool",
"secrets",
"analogio",
"touchio",
]

intersphinx_mapping = {
Expand Down
11 changes: 3 additions & 8 deletions examples/funhouse_adafruit_io_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#
# SPDX-License-Identifier: MIT
import time
import random
import board
import adafruit_dps310
import adafruit_ahtx0
Expand All @@ -13,11 +12,7 @@
dps310 = adafruit_dps310.DPS310(i2c)
aht20 = adafruit_ahtx0.AHTx0(i2c)

funhouse = FunHouse(
default_bg=0x0F0F00,
scale=2,
)

funhouse = FunHouse(default_bg=None)
funhouse.peripherals.set_dotstars(0x800000, 0x808000, 0x008000, 0x000080, 0x800080)

# pylint: disable=unused-argument
Expand Down Expand Up @@ -63,8 +58,8 @@ def message(client, feed_id, payload):
while True:
funhouse.network.mqtt_loop()

funhouse.set_text("Temp %0.1F" % dps310.temperature, temp_label)
funhouse.set_text("Pres %d" % dps310.pressure, pres_label)
print("Temp %0.1F" % dps310.temperature)
print("Pres %d" % dps310.pressure)

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