久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

標題: NodMCU的例子程序,端口接LED閃爍 [打印本頁]

作者: zmc419    時間: 2018-10-14 09:50
標題: NodMCU的例子程序,端口接LED閃爍
/*
  NodMCU的例子程序,測試輸出口,接LED可閃爍。
ESP8266核心
*/


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(D0, OUTPUT);  //USER
  pinMode(D1, OUTPUT);
  pinMode(D2, OUTPUT);
  pinMode(D3, OUTPUT);  //FLASH
  pinMode(D4, OUTPUT);  //TXD1,BlueLED
  pinMode(D5, OUTPUT);
  pinMode(D6, OUTPUT);
  pinMode(D7, OUTPUT);  //RXD2
  pinMode(D8, OUTPUT);  //TXD2
  pinMode(D9, OUTPUT);  //RXD0
  pinMode(D10, OUTPUT); //TXD0
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(D0, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D0, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D1, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D1, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D2, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D3, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D3, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D4, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D4, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D5, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D5, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D6, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D6, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D7, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D7, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D8, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D8, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D9, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D9, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
  digitalWrite(D10, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);              // wait for a second
  digitalWrite(D10, LOW);    // turn the LED off by making the voltage LOW
  delay(100);              // wait for a second
}





歡迎光臨 (http://m.zg4o1577.cn/bbs/) Powered by Discuz! X3.1
主站蜘蛛池模板: www.久久久久 | 亚洲视频在线免费观看 | 国产女人18毛片水18精品 | 日韩三级久久 | 可以免费看的毛片 | 国产免费一级片 | 黄网站免费大全入口 | 亚洲三级黄色片 | 久久久网| 久久久天堂国产精品女人 | 黄色a视频 | 精品少妇v888av| 91久久久久国产一区二区 | 日本黄色免费 | 一区二区免费在线观看 | 免费福利片 | 国产剧情在线 | 999在线视频 | 久草成人 | 久草福利在线视频 | 91超碰在线观看 | 国产一及片 | 欧美不卡一区二区三区 | 黄色片视频在线观看 | 欧美日韩亚洲一区二区 | 国产无遮挡又黄又爽免费网站 | 欧美性视频在线 | 伦一理一级一a一片 | 午夜私人影院 | 国产黄色片视频 | 久久天天躁狠狠躁夜夜躁2014 | 日日夜夜干 | 日本亚洲欧美 | 日韩成人在线观看 | 国产日韩欧美 | 五月天一区二区三区 | 一区二区三区视频在线播放 | 亚洲日本高清 | 三级av片 | 黄色成人免费网站 | 一二三区视频 |