数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

2821 数据表(PDF) 28 Page - Adafruit Industries

部件名 2821
功能描述  Adafruit Feather HUZZAH ESP8266
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ADAFRUIT [Adafruit Industries]
网页  https://www.adafruit.com/
标志 ADAFRUIT - Adafruit Industries

2821 数据表(HTML) 28 Page - Adafruit Industries

Back Button 2821 Datasheet HTML 24Page - Adafruit Industries 2821 Datasheet HTML 25Page - Adafruit Industries 2821 Datasheet HTML 26Page - Adafruit Industries 2821 Datasheet HTML 27Page - Adafruit Industries 2821 Datasheet HTML 28Page - Adafruit Industries 2821 Datasheet HTML 29Page - Adafruit Industries 2821 Datasheet HTML 30Page - Adafruit Industries 2821 Datasheet HTML 31Page - Adafruit Industries 2821 Datasheet HTML 32Page - Adafruit Industries Next Button
Zoom Inzoom in Zoom Outzoom out
 28 / 42 page
background image
So to set the pin #0 LED on and off (which would be pin #3 in Lua) first make it an output:
Turn the LED on with:
And off with:
You can make this a little more automated by running a longer script.
For longer text, pasting can be difficult as the lua interpreter needs a little delay time between characters and also
require CR-LF settings. For that reason you may want to paste each line and then hit return manually.
Pin Notes
PCB/Arduino
NodeMCU/Lua
No pullups!
0
3
2
4
3
9
4
1
5
2
9
11
10
12
12
6
13
7
14
5
15
8
16
0
gpio.mode(3, gpio.OUTPUT)
gpio.write(3, gpio.LOW)
gpio.write(3, gpio.HIGH)
while 1 do
gpio.write(3, gpio.HIGH)
tmr.delay(1000000)
-- wait 1,000,000 us = 1 second
gpio.write(3, gpio.LOW)
tmr.delay(1000000)
-- wait 1,000,000 us = 1 second
end
© Adafruit Industries
https://learn.adafruit.com/adafruit-feather-huzzah-esp8266
Page 28 of 42



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com