To program an Arduino board, you will need to download the Arduino IDE from the Arduino website. Once installed, you can open the IDE and write your code. Here is an example of a simple program that will turn an LED on and off:
// Set the pin that the LED is connected to
int ledPin = 13;
void setup() {
// Set the LED pin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
// Turn the LED on
digitalWrite(ledPin, HIGH);
// Wait for 1 second
delay(1000);
// Turn the LED off
digitalWrite(ledPin, LOW);
// Wait for 1 second
delay(1000);
}