Electronics Flashcards
1
Q
digitalRead()
A
Reads the value from a specified digital pin, either HIGH or LOW
2
Q
delay()
A
delays the circuit action
3
Q
digitalWrite()
A
Tells the circuit/Arduino board what to do
Ex.
void loop() {
digitalWrite(13, HIGH); // sets the digital pin 13 on
delay(1000); // waits for a second
digitalWrite(13, LOW); // sets the digital pin 13 off
delay(1000); // waits for a second
}
4
Q
pinMode()
A
Configures the specified pin to behave either as an input or an output.
Ex.
void setup() {
pinMode(13, OUTPUT); // sets the digital pin 13 as output
}