kopia lustrzana https://github.com/pimoroni/pimoroni-pico
SCD41: update Plasma Stick example
rodzic
dc1f000134
commit
d9064f0162
|
@ -48,7 +48,7 @@ Temperature: {temperature:.2f} °C
|
||||||
Humidity: {humidity:.2f} %""")
|
Humidity: {humidity:.2f} %""")
|
||||||
|
|
||||||
# calculates a colour
|
# calculates a colour
|
||||||
hue = HUE_START + ((co2 - MIN) * (HUE_END - HUE_START) / (MAX - MIN))
|
hue = max(0, HUE_START + ((co2 - MIN) * (HUE_END - HUE_START) / (MAX - MIN)))
|
||||||
|
|
||||||
# set the leds
|
# set the leds
|
||||||
for i in range(NUM_LEDS):
|
for i in range(NUM_LEDS):
|
||||||
|
|
Ładowanie…
Reference in New Issue