Basic Arduino Quiz #1
- What is Arduino? In your words....
- In the following statement, what does the 1000 stand for: delay(1000);
- What is the maximum amount of current for any one of the Arduino pins? Hint: check Arduino.cc under Hardware...
- When does the void setup() part of the program occur?
- What is the difference between digitalWrite() and analogWrite() ???
- What does this function do: Serial.begin(9600);
- What is wrong with the following:
/*Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.*/
int led = 13;
void setup() {
pinMode(led, INPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
- What is the for() statement used for?