User login

Powered by Drupal, an open source content management system

Theory and Practice of Tangible User Interfaces

Assignment 1 - Blinking LED Breadboard

Submitted by tilman on Fri, 09/05/2008 - 12:48

Description

Setting up a a light emitting diode and making it blink.

Componentes Used

  • Light Emitting Diode (LED)
  • Resistor
  • Wires

Source Code

/*
* Blink
*
* Tilman Dingler
* 09/04/2008, Theory and Practice of Tangible User Interfaces
*
*/

int blueLED = 1;

void setup() {
pinMode(blueLED, OUTPUT);
}

void loop() {
digitalWrite(blueLED, HIGH);
delay(500);
digitalWrite(blueLED, LOW);
delay(500);
}

Circuit Image

Blinking LED on breadboard - Tilman Dingler