7
votes

What are the actual values for HIGH, LOW, INPUT, and OUTPUT? These are used in functions like pinMode() and digitalWrite().

Thanks

1

1 Answers

4
votes

These might be of use to you:

https://www.arduino.cc/en/Reference/Constants

Arduino HIGH LOW

#define HIGH 0x1
#define LOW  0x0

#define INPUT 0x0
#define OUTPUT 0x1

#define true 0x1
#define false 0x0

So basically they are booleans since C/C++ represents true as 0x1 and false as 0x0