The Heltec WiFi 32 board from Heltec has an onboard LED, connected to PIN25 / GPIO25.
To “blink” this led, for signaling status or just for fun set PIN 25 to LOW or HIGH.
from machine import Pin from time import sleep OnboardLED = Pin(25, Pin.OUT) sleep(1) OnboardLED.value(not OnboardLED.value()) sleep(1) OnboardLED.value(not OnboardLED.value())
This is just a simple code in micropython!
Happy blinking!
Onboard LED blink – WiFi LoRa ESP32 (heltec)
Nice Example,
We modified it a little and used Thonny.
from machine import Pin
from time import sleep
i=0
while (1):
OnboardLED = Pin(25, Pin.OUT)
sleep(0.5)
OnboardLED.value(1)
sleep(0.5)
OnboardLED.value(0)
my board pin 36-39 don’t work, any hints?