实现代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE> New Document </TITLE><META NAME"Generator" CONTENT"EditPlus"><META NAME"Autho…
一、实物连接 二、代码实现
const int analogPinA0; //the AO of the module attach to A0
const int digitalPin7; //D0 attach to pin7
const int ledPin13; //pin 13 built-in led
int Astate0; //store the value of A0
boolean Dstate0; //store the value of D0void …