Electronics Flashcards

1
Q

digitalRead()

A

Reads the value from a specified digital pin, either HIGH or LOW

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

delay()

A

delays the circuit action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly