Commit 9ccbda09 authored by Nocturnal42's avatar Nocturnal42

Fixed small oversight in the air quality sensor, not using the correct...

Fixed small oversight in the air quality sensor, not using the correct resistor value for the calculations.
parent d6531056
......@@ -69,7 +69,7 @@ def mainUpload(stdscr):
dht = DHT22.DHT22(DHTPin)
bmp = BMP085.BMP085()
adc = MCP3008.MCP3008(SPIMOSI,SPIMISO,SPICLK,SPICS)
airSensor = AQSensor.AQSensor(adc,AQADC,22000)
airSensor = AQSensor.AQSensor(adc,AQADC,pullup=22000)
lightSensor = LightSensor.LightSensor(adc,LightADC)
uvSensor = LightSensor.LightSensor(adc,UVADC)
no2Sensor = AQSensor.AQSensor(adc,NO2ADC,90000,10000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment