What is digitalWrite?

003 - Controlling LEDs in Arduino

Flashcard
•
Computers
•
12th Grade
•
Hard
Roy Nepomuceno
Used 1+ times
FREE Resource
Student preview

11 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
digitalWrite is an Arduino function used to set the voltage level on a digital pin, controlling whether a pin outputs a HIGH (ON) or LOW (OFF) signal.
2.
FLASHCARD QUESTION
Front
What are the parameters of the digitalWrite function?
Back
digitalWrite(pin, value); where 'pin' is the pin number and 'value' can be HIGH or LOW.
3.
FLASHCARD QUESTION
Front
What does LOW represent in digitalWrite?
Back
LOW represents 0 volts or a logic level 0, turning the connected device OFF.
4.
FLASHCARD QUESTION
Front
What does HIGH represent in digitalWrite?
Back
HIGH represents the operating voltage of the Arduino board, usually 5 volts, turning the connected device ON.
5.
FLASHCARD QUESTION
Front
How does digitalWrite work for an LED?
Back
digitalWrite(pin, HIGH) supplies voltage to the LED, turning it ON; digitalWrite(pin, LOW) cuts off the voltage supply, turning the LED OFF.
6.
FLASHCARD QUESTION
Front
What is a practical example of using digitalWrite with an LED?
Back
Connecting an LED to pin 5: Writing HIGH to pin 5 sends 5V to the LED, causing it to light up; writing LOW stops the voltage, turning the LED off.
7.
FLASHCARD QUESTION
Front
What must be done before using digitalWrite on a pin?
Back
The pin must be set as OUTPUT using pinMode(pin, OUTPUT).
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
2 Arduino with Breadboards

Flashcard
•
11th Grade
15 questions
Arduino SPT 2025

Flashcard
•
KG
15 questions
test adruino

Flashcard
•
12th Grade
10 questions
Exploring Arduino Basics

Flashcard
•
University
15 questions
ARDUINO SEMANA 3

Flashcard
•
KG - University
14 questions
Arduino

Flashcard
•
11th Grade
6 questions
Motivation

Flashcard
•
11th Grade
12 questions
Electric circuits

Flashcard
•
12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade