Assignment: Introduction to Arduino and Physical Computing
Collaborators:
Description
I adjusted the timing to match the light characteristic of Nobska Lighthouse in Woods Hole (one second on per six second cycle). —Dan Byler
Components used
- LED
- Resistor
- Wires
Arduino code
int ledPin = 13; // LED connected to digital pin 13
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(5000); // wait for a second
}
Item