📜  ADC 和数字输入引脚有什么区别? - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:01.308000             🧑  作者: Mango

代码示例1
The difference is that a digital pin is only able to detect whether there is 
a voltage present on a pin or not, while an analog pin is connected to an 
internal Analog to Digital Converter (ADC) and can measure 
the actual voltage on the pin.

A digital pin is suited to detect if a button has been pressed, while an 
analog pin might for example measure the position of a potentiometer.