// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 1 as an output.
pinMode(1, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
for (int i = 0; i < 5000; i++)
{
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delayMicroseconds(128); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delayMicroseconds(128); // wait for a second
}
for (int i = 0; i < 5000; i++)
{
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delayMicroseconds(160); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delayMicroseconds(96); // wait for a second
}
for (int i = 0; i < 5000; i++)
{
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delayMicroseconds(192); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delayMicroseconds(64); // wait for a second
}
for (int i = 0; i < 5000; i++)
{
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delayMicroseconds(224); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delayMicroseconds(32); // wait for a second
}
for (int i = 0; i < 5000; i++)
{
digitalWrite(1, HIGH); // turn the LED on (HIGH is the voltage level)
delayMicroseconds(255); // wait for a second
digitalWrite(1, LOW); // turn the LED off by making the voltage LOW
delayMicroseconds(0); // wait for a second
}
}