// #include <Arduino.h>
// // Pin for the LED
// const int LED_PIN = 10;
// // Function to turn on the LED
// void turnOnLED(int brightness_0) {
// // Set the brightness of the LED
// analogWrite(LED_PIN, brightness_0);
// // Delay for a short time
// delay(10);
// }
// // Function to turn off the LED
// void turnOffLED(int brightness_1) {
// // Turn off the LED
// analogWrite(LED_PIN, brightness_1);
// // Delay for a short time
// delay(10);
// }
// // Main loop
// void setup() {
// // Set the pin as an output
// pinMode(LED_PIN, OUTPUT);
// }
// void loop() {
// // Turn on the LED from 0 to 255
// for (int i = 0; i < 255; i++) {
// turnOnLED(i);
// }
// // Turn off the LED from 255 to 0
// for (int i = 255; i > 0; i--) {
// turnOffLED(i);
// }
// }
void setup() {
// put your setup code here, to run once:
pinMode(10, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 0; i < 255; i++) {
analogWrite(10, i);
delayMicroseconds(90000);
}
for (int i = 255; i > 0; i--) {
analogWrite(10, i);
delayMicroseconds(90000);
}
}