import machine
# Create an 'led' object in pin 2
# and set the pin direction to output
led = machine.Pin(22, machine.Pin.OUT)
print("Hello, ESP32!")
# This turns on or turns off the 'led'
led.on()
led.off()
# This is the same as the above code
# but now we are passing a value
led.value(1)
led.value(0)
# This is the same as the above code
# as you already know
# 1 = True
# 0 = False
led.value(True)
led.value(False)
print("fine")