Instructions

IDUINO for maker’s life
68 www.openplatform.cc
}else{
Serial.println("counterclockwise");
}
Serial.print("Encoder Position: ");
Serial.println(encoderPosCount);
}
pinALast = aVal;
}
******Code End******
Module25: Switch light module
1 Introduction
This module contains two function, one is ball switch, the other is red led. Basing on these
two function, we can make a project like a magic
Specification
Operation voltage: 5V
4Pin
2 Pinout
Pin
Description
S
Signal output pin, used for the mercury
switch is active or not
L
Input pin for the red led
+(middle pin)
Power