Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    T-Relay - How can I use on-board LED?

    Technical Discussion
    2
    2
    185
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jpvonoy last edited by jpvonoy

      I want to have the on-board LED (LED5) turn on whenever the T-Relay module is powered. I tried adding the following to my code in the setup function, but the LED only briefly flashes then goes off when power is applied.

      pinMode(25, OUTPUT);
      digitalWrite(25, HIGH);
      

      What should I do to turn the LED ON?

      S 1 Reply Last reply Reply Quote 0
      • S
        Sukaibin @jpvonoy last edited by

        @jpvonoy
        pinMode(25, OUTPUT);
        digitalWrite(25, LOW);

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors