Guide
Page 59
NIGHT-LIGHT PENNANT
4
NIGHT-LIGHT PENNANT
LilyMini
ProtoSnap
S
Button
LEDs
Light 
Sensor
1
4
3
2
+
_
Press to change mode
1
2
3
4
on
CR2032
LITHIUM BATTERY
3V
Understanding Your  
Circuit: Inputs
The light sensor and button are inputs – components that gather 
information from the world and relay it to the microcontroller. The LilyMini 
reads information from the inputs connected to it and makes decisions 
in the code based on the values it receives. The LilyMini switches modes 
when the button is pressed. In modes 2 and 3, when the light value from 
the light sensor falls below a certain level, the LilyMini tells the LEDs to 
change behavior (breathe or twinkle). When the light level rises again, the 
LilyMini tells the LEDs to return to the original behavior.










