在Arduino中,HIGH,LOW,INPUT和OUTPUT的原始值是多少

时间:2015-06-29 19:50:00

标签: arduino

HIGH,LOW,INPUT和OUTPUT的实际值是多少? 它们用于pinMode()和digitalWrite()等函数。

由于

1 个答案:

答案 0 :(得分:3)

这些可能对您有用:

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

所以基本上它们都是布尔值,因为C / C ++表示为真,如Ox1,假为0x0