another coding question

Store Forums Defusable Clock General Discussion another coding question

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #391
    greenbean
    Member

    what part of the code controls the led’s. I am running a relay from them and need them to stay on constant for a long duration when the device is detonated. so what im asking is what part of the code do i change and to what.

    #1520
    Michael
    Keymaster

    The LEDs are named as follows, per their location on the board:

    LED_PM
    LED_ALARM
    LED_TOP
    LED_DET

    To turn an LED on:

    digitalWrite(LED_DET, HIGH);

    to turn it off:

    digitalWrite(LED_DET, LOW);

    If you want to make changes to code, you will need to spend some time trying to figure out how it works and learning how to code with Arduino. It’s not very difficult if you invest some effort.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.