This switch will turn on and off according to the orienta-
tion you hold it.
Example
You can use the codes included in order to
switch on or off the built-in LED on the Seeeduino Lotus
just by tilting this up or down. Find this example and
more via the path below:
File > Sketchbook > Grove_Beginner_Kit_Sketch-
book-master > tutorial 2 - Tilt Switch > 2_tilt_switch_Built-
in_LED
3
Grove – Tilt Switch
D4 D3
A6 D7
D2
D6
A2
A0 12C.
UART
D5
12C..
L
Tips
Inside this tilt switch is a pair of balls that make contact with the pins
when the case is upright and thus making a connection.