Page 103 - Programming the Photon Getting Started With the Internet of Things
P. 103
Analog Inputs
As you have learned, with digital inputs, the information you receive from a digital device
is either HIGH or LOW, ON or OFF. In contrast to this there are a number of devices that
can have a range of values, such as dials, sliders, temperature sensors, and many more.
Analog inputs on the Photon give us a value ranging from 0 to 4095, depending on the
voltage. The Photon has up to six analog pins as shown in Figure 5.4.