mirror of
https://github.com/OMGeeky/homecontrol.esp-sensors.git
synced 2026-02-23 15:49:52 +01:00
update documentation & examples
This commit is contained in:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user