Assignment: Introduction to Arduino and Physical Computing
Collaborators:
Components Used: Circuit Board, Blue LED, Arduino, 220 Ohm resistor
/*
info262: Theory and Practice of Tangible User Interfaces
Assignment: LED Blinking
Programmer: Dhawal Mujumdar
Email: dhawal@ischool.berkeley.edu
*/
// Connect LED to digital pin 13
int ledPin = 13;
void setup()
{
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
}
// Infinite loop as long as Arduino is connected to power
// This will also ensure LEFD is blinking
void loop()
{
digitalWrite(ledPin, HIGH); // Turn on the LED
delay(2000); // Wait for 2 seconds
digitalWrite(ledPin, LOW); // Turn off LED
delay(1000); // Wait for a second
}