From b76e2aa51b576845d26d8d0dc207dffb40a39cca Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Fri, 2 Apr 2021 19:08:52 -0700 Subject: [PATCH] Fix a few things --- docs/conf.py | 1 + examples/funhouse_adafruit_io_mqtt.py | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 63cca8e..d4dd3ae 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -33,6 +33,7 @@ "socketpool", "secrets", "analogio", + "touchio", ] intersphinx_mapping = { diff --git a/examples/funhouse_adafruit_io_mqtt.py b/examples/funhouse_adafruit_io_mqtt.py index f7438bb..76ef3c3 100755 --- a/examples/funhouse_adafruit_io_mqtt.py +++ b/examples/funhouse_adafruit_io_mqtt.py @@ -3,7 +3,6 @@ # # SPDX-License-Identifier: MIT import time -import random import board import adafruit_dps310 import adafruit_ahtx0 @@ -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 @@ -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: