验证中...
gistfile1.txt
Raw Copy
void setup(){
Serial.begin(9600);
pinMode(8, OUTPUT);
}
void loop(){
switch (Serial.read()) {
case 'a':
digitalWrite(8,HIGH);
break;
case 'b':
digitalWrite(8,LOW);
break;
}
}
普通继电器.jpg

Comment list( 0 )

Sign in for post a comment

Help Search