输出也可能比仅指定模拟管脚编号更为具体,但是本机编号灵活性更好,因为它不会将任何一个管脚束缚到某一项作业上。
The output can be more specific than just specifying the analog pin number, but the generic number allows flexibility because it does not tie down any one pin to any one job.
以管脚编号为中心,然后再进入到一个switch结构,根据连接到此管脚的传感器来采取不同的措施。
Focusing on the pin number, it then goes into a switch structure that takes a different action depending on which sensor is connected to the pin.
应用推荐