| 전자부품 데이터시트 검색엔진 |
|
2821 데이터시트(PDF) 28 Page - Adafruit Industries |
|
|
|||||||||||||||||||||||||||||
2821 데이터시트(HTML) 28 Page - Adafruit Industries |
|
28 / 42 page ![]() 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 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |