LED rail crossing lights

Hi.

Here is my rail crossing lights code.
Have fun creating yours! :slight_smile:

#include "IoTaaP.h"

#define LED 26
#define LED1 27

IoTaaP iotaap;

void setup()
{
    iotaap.misc.makePinOutput(LED);
    iotaap.misc.makePinOutput(LED1);
}

void loop()
{
    iotaap.misc.setPin(LED);
    iotaap.misc.clearPin(LED1);
    delay(1000);
    iotaap.misc.setPin(LED1);
    iotaap.misc.clearPin(LED);
    delay(1000);
}