標(biāo)題: arduino板LED燈13號(hào)端口延時(shí)1秒的簡單代碼 [打印本頁]

作者: 13417685659    時(shí)間: 2020-11-10 08:48
標(biāo)題: arduino板LED燈13號(hào)端口延時(shí)1秒的簡單代碼

  1. int ledPin = 13;

  2. void setup()
  3. {
  4.   pinMode(ledPin,OUTPUT);
  5.   
  6. }
  7. void loop()
  8.   {
  9.     digitalWrite(ledPin,HIGH);
  10.     delay(1000);
  11.     digitalWrite(ledPin,LOW);
  12.     delay(1000);
  13.   }
復(fù)制代碼







歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1