🟢 PART 5 — DIGITAL INPUTS & PUSHBUTTONS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:00 PM on 9/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

8 Terms

1
New cards

What is a pushbutton used for in an Arduino circuit?

It provides a digital input that allows a user to interact with the Arduino.

2
New cards

What are the two basic states of a digital button?


Pressed → HIGH/ON

Released → LOW/OFF

The exact electrical behavior depends on how the circuit is wired.


3
New cards

Why does the pushbutton need to be placed correctly on a breadboard?


The button must be positioned so that pressing it connects the appropriate sides of the circuit.

Incorrect placement can prevent the circuit from working correctly.


4
New cards

What Arduino function is used to configure a pin as an input or output?

pinMode()


5
New cards

What does this code do?

pinMode(2, INPUT);



It configures digital pin 2 as an input.

6
New cards

What does this code do?

pinMode(13, OUTPUT);


It configures digital pin 13 as an output.

7
New cards

What Arduino function reads the state of a digital input?

digitalRead()


8
New cards

What does this code do?

digitalRead(2);


It reads the current digital state of pin 2.

The result will normally be:

HIGH or LOW.