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

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 3528|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

NodMCU的例子程序,端口接LED閃爍

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:137736 發(fā)表于 2018-10-14 09:50 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
/*
  NodMCU的例子程序,測(cè)試輸出口,接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
}

評(píng)分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎(jiǎng)勵(lì)!

查看全部評(píng)分

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: a级免费观看视频 | 亚洲精品一区二区在线观看 | 免费的av网站 | 超碰91在线 | 成人国产在线视频 | 国产一区二区三区网站 | 欧美一级在线 | 亚洲a毛片 | 免费国产一区二区 | 欧美xxxx做受欧美 | 特级做a爱片免费69 精品国产鲁一鲁一区二区张丽 | 欧美日韩三区 | 中文字幕韩在线第一页 | 99久久婷婷国产综合精品 | 亚洲香蕉在线视频 | 亚洲成av人影片在线观看 | 日韩成人在线观看 | 国产精品欧美一区二区三区 | 涩涩视频在线观看 | 91亚洲国产成人精品一区二三 | 久久亚洲欧美日韩精品专区 | 久久久久久成人 | 精品国产一区二区三区在线观看 | 四虎成人精品永久免费av九九 | 粉嫩粉嫩芽的虎白女18在线视频 | 中文字幕韩在线第一页 | 国产成人av一区二区三区 | 91在线影院| 久久久影院 | 黄色成人免费在线观看 | 中文字幕免费在线 | 欧美日韩成人在线 | 国产超碰人人爽人人做人人爱 | 综合色久 | 亚洲高清av在线 | 91在线资源 | 91美女在线| 国产91在线播放 | 一本色道久久综合亚洲精品高清 | 午夜免费福利影院 | 欧美综合视频 |