import dht
from machine import Pin, PWM
import neopixel
from servo import Servo
import time


servo = PWM(Pin(15), freq=50, duty=0)
# servo gre naokoli 180 stopinj!!
for i in range(180):
    Servo(servo, i)
    time.sleep(0.1)


nl = 16
leds = neopixel.NeoPixel(Pin(18), nl)
redSteps = 255//nl
for i in range(nl):
    leds[i] = [i*redSteps, 255 - (i*redSteps), 0]
leds.write()

# DHT senzor!!
sense = dht.DHT22(Pin(4))
sense.measure()
print(sense.humidity())

# z novo osvojenim znanje naredi kar se da lep prikazovalnik temperature in vlage =).
MRZLO.
VROČE.