In Arduino, what are the initial values ​​for HIGH, LOW, INPUT and OUTPUT

What are the actual values ​​for HIGH, LOW, INPUT and OUTPUT? They are used in functions such as pinMode () and digitalWrite ().

thank

+4
source share
1 answer

They may be useful 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 Boolean since C / C ++ represents true as Ox1 and false as 0x0

+2
source

All Articles