yuandi:diy:程序3

  1. void setup()
  2. {pinMode(7,INPUT);
  3. pinMode(13,OUTPUT);}
  4. void loop(){
  5. if(digitalRead(7)){digitalWrite(13,HIGH);}
  6. else{digitalWrite(13,LOW);}}

段秀洋 2014/04/5 21:05

  • yuandi/diy/程序3.txt
  • 最后更改: 2014/04/21 13:11
  • (外部编辑)