Noduino Digital Pin
来自Jack's Lab
(版本间的差异)
(→Examples) |
(→Overview) |
||
第5行: | 第5行: | ||
* digitalRead() | * digitalRead() | ||
+ | |||
+ | ;;Notice: Noduino use the ESP8266/ESP8285 SoC. They are all 3.3V. So HIGH is 3.3V, Low is 0V | ||
<br><br> | <br><br> | ||
2016年8月28日 (日) 08:47的版本
1 Overview
- pinMode()
- digitalWrite()
- digitalRead()
- Notice
- Noduino use the ESP8266/ESP8285 SoC. They are all 3.3V. So HIGH is 3.3V, Low is 0V
2 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); }