Announcements

November 24, 2007
Reading for November 27th, are now posted. Enjoy!

October 2, 2007
To upload your thoughtless acts, create a new assignment page like any other lab. You'll see "Thoughtless Acts" listed as one of the assignment options.

May 24, 2008
This site has been archived and is no longer editable. Stay tuned for the next version, coming in the fall!


Lab1

Project Members: 
Eun Kyoung Choe
/*
*
* TUI Lab1: Blinking LED
* Turns on an LED on for one second,
* then off for one second, and so on...
*
* Date: 09/04/2007
* Eun Kyoung Choe
*
*/

int ledPin = 13; // LED connected to digital pin 13

void setup() // run once, when the sketch starts
{
pinMode(ledPin, OUTPUT);// sets the digital pin as output
}

void loop() // run over and over again
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}

Lab1- Blinking LED

AttachmentSize
Lab1.jpeg142.61 KB

Comments

Feedback on your assignment

Eun Kyoung,

This report is missing a few sections. Please have a look at my example report to see which sections we are asking for. Also, the image does not seem to appear.

Dave


Powered by Drupal - Design by Artinet