Digital and Analog Signals#
TODO
Digital signals represent data as discrete binary values (0s and 1s). Analog signals represent data as continuous waves of varying amplitude or frequency. In the case of a micro:bit, an analog signal can be within the range of 0 and 1023 or between 0 and 255 (in certain circumstances).
Possible plots for digital and analog signals are displayed below:

TODO:ADD MORE DETAIL
Checkpoint: Digital or Analog Signal#
Consider the following inputs:
A: A button
B: A temperature sensor
C: A light-level sensor
D: A switch
Are the inputs above examples of a digital or an analog signal?
Click here to reveal the solutions.
Solutions:
A: Digital. A button only has two values.
B: Analog. A temperature has more than two values.
C: Analog. A light level sensor has more than two values.
D: Digital. A switch only has two values.