from machine import Pin
import time
led = Pin(2, Pin.OUT) #LED is connected to the ESP32
for i in range(300):
led.value(1)
print("light on")
time.sleep(0.5)
led.value(0)
print("light off")
time.sleep(0.5)
from machine import Pin
import time
led = Pin(2, Pin.OUT) #LED is connected to the ESP32
for i in range(300):
led.value(1)
print("light on")
time.sleep(0.5)
led.value(0)
print("light off")
time.sleep(0.5)