Can the analogRead() function be used from any digital pin?

Can the analogRead() function be used from any digital pin?
A. No, it cannot
B. Yes, it can, but only on certain Arduino Boards
C. Yes, it can
D. Yes, it can, but only through certain pins
 
Answer: D
Explanation: The pins in the Arduino Boards are all digital by default. The analog functionality is an addon to the board with the help of an ADC (Analog to Digital Convertor) Circuit which is only connected to a certain number of digital pins, so therefore not all pins can support analog communications.
 

Tìm kiếm

Back
Top