Skip to main content
[code language= »cpp »]

//
// RoboSumo code example: Flash an LED
// Written by Ted Burke, 18-4-2019
//

void setup()
{
pinMode(2, OUTPUT); // LED pin
}

void loop()
{
digitalWrite(2, HIGH); // LED on
delay(250);
digitalWrite(2, LOW); // LED off
delay(250);
}

[/code]

Leave a Reply