# Project 1 Arduino

## Arduino - Making an LED Blink

This is a simple sketch for Arduino that flashes an LED connected to pin 13.

## Requirements

To run this script, you must have:

* a compatible Arduino board
* One LED
* A resistor (if necessary to limit the current)
* Connecting cables

## Connection

Connect the LED to pin 13 on the Arduino board. Be sure to use a resistor (usually 220 ohms) in series with the LED to limit the current and protect the LED.

## Instructions

1. Load the sketch into the Arduino IDE.
2. Connect the Arduino board to the computer via USB cable.
3. Select the correct board type and port in the Arduino IDE.
4. Load the sketch onto the Arduino board.
5. Observe the LED flashing at regular one-second intervals.

## Code

```cpp
#define LED 13 // LED connected to pin 13

void setup() {
    pinMode(LED, OUTPUT); // Set the pin as output
}

void loop() {
    digitalWrite(LED, HIGH); // Turn on the LED
    delay(1000);             // Wait a second
    digitalWrite(LED, LOW);  // Turn off the LED
    delay(1000);             // Wait a second


}
```

## License

Questo script è rilasciato sotto la [Licenza MIT](https://github.com/ArduinoDenis/progetto-1-arduino/blob/main/LICENSE/README.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arduinodenis.it/github/resources-arduino/arduino-projects/project-1-arduino.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
