from machine import Pin, PWM,
import time
led_pwm = PWM(Pin(5)) # create PWM object from a pin
led_pwm.freq(500) # set frequency
temperature = machine.Pin(1, Pin.in)
Setpoint = 180.0
# Set the settings of the PID controller (according to the values used in the example table)
Kp = 1
Ki = 0
Kd = 0
e = setpoint - température
#integral += e * dt
proportional = Kp * e
#derivative = Kd * (e - previous_error) / dt
#integral_contribution = Ki * integral
pid = proportional #+ integral_contribution + derivative
led_pmw.duty(1023)