CODE EXPLANATION
•
light
=
map(light,
redefines the working range and assign to the variable a new
value from the new scale.
•
light = constrain(light, 0, 100) constrain() forces the value
to remain within a certain range.
REAL LIFE APPLICATIONS
•
Light
sensors
in
brightness to the ambient light.
HELLO
ZEROPLUS!
sensorLow,
sensorHigh,
Smartphones
automatically
HELLO
ZEROPLUS!
0,
100)
map()
adjust
the
screen
Need help?
Do you have a question about the Arduino starter kit with Logic Analyzer and is the answer not in the manual?