update documentation & examples

This commit is contained in:
OMGeeky
2025-05-07 22:32:34 +02:00
parent c5e02c1d73
commit 71f1b89621
7 changed files with 205 additions and 43 deletions

View File

@@ -32,7 +32,7 @@ if sys.implementation.name == "micropython":
print(f"Sensor pin: {dht_config.get('pin')}")
# Initialize the sensor using configuration
sensor = DHT22Sensor(sensor_config=config)
sensor = DHT22Sensor(sensor_config=dht_config)
print("Starting sensor readings. Press Ctrl+C to stop.")
@@ -80,7 +80,7 @@ else:
print(f"Sensor pin: {dht_config.get('pin')}")
# Initialize the sensor using configuration
sensor = DHT22Sensor(sensor_config=config)
sensor = DHT22Sensor(sensor_config=dht_config)
print("Starting simulated sensor readings. Press Ctrl+C to stop.")