Noduino Digital Pin

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(Examples)
第47行: 第47行:
  
 
<br><br>
 
<br><br>
 +
 +
== 扩展阅读 ==
 +
 +
;;更多问题参考:
 +
 +
* [[Noduino]]
 +
 
<br><br>
 
<br><br>
 
<br><br>
 
<br><br>

2016年9月5日 (一) 12:34的版本

目录

1 Overview

  • pinMode()
  • digitalWrite()
  • digitalRead()



2 Warning

Noduino use the ESP8266/ESP8285 SoC.

They are all 3.3V power supply.


So:

  • HIGH is 3.3V
  • LOW is 0V



3 Examples

Use the pin D5 to output a square wave:

#include "noduino.h"

void setup()
{
	pinMode(D5, OUTPUT);		// set D5 to output mode
	digitalWrite(D5, LOW);
}

void loop()
{
	digitalWrite(D5, HIGH);	        // ouput high level
	delay(1000);                    // delay 1000ms
	digitalWrite(D5, LOW);          // output low level
	delay(1000);
}


You can try the example in noduino-sdk/examples/noduino/blink



4 扩展阅读

更多问题参考:



















个人工具
名字空间

变换
操作
导航
工具箱