231a-aj lab4
Lab 4
*Blink Mod * Tonje * * Basic example of how to make the LED blink on the Arduino * / int ledPin = 13; void setup() //runs once, when sketch starts { pinmode(ledPin, OUTPUT); } void loop()
This if taken from Limor's Lesson 4
/* * Hello World! * * This is the Hello World! for Arduino. * It shows how to send data to the computer */ void setup() // run once, when the sketch starts { Serial.begin(9600); // set up Serial library at 9600 bps\ } void loop() // run over and over again { Serial.println("Hello world!"); // prints hello with ending line break delay(1000); }