Arduino Forum
digitalWrite() can it take 0 or 1 instead of HIGH?
Forum 2005-2010 (read only)
General
Frequently-Asked Questions
mem
February 17, 2009, 5:02pm
2
Yes, LOW is defined as 0, HIGH as 1 so either the values or constants can be used
show post in topic
Related topics
Topic
Replies
Views
Activity
digitalWrite(Pin, LOW); digitalWrite(Pin, 0); what's the difference?
Programming
8
6705
May 5, 2021
can digitalwrite take arguemnts that are not LOW or HIGH?
Programming
2
586
May 5, 2021
About digitalWrite
Programming
3
1221
May 5, 2021
What is the TypeDef for HIGH and LOW?
Programming
10
58753
May 5, 2021
integer values for HIGH and LOW
Suggestions for the Arduino Project
8
66389
May 6, 2021