| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
2821 bảng dữ liệu(PDF) 29 Page - Adafruit Industries |
|
|
|||||||||||||||||||||||||||||
2821 bảng dữ liệu(HTML) 29 Page - Adafruit Industries |
|
29 / 42 page ![]() The LED will now be blinking on and off. Note that since its in a loop, its not possible to get it to stop via the interpreter. To stop it, click theReset button again! This code halts the processor during the tmr.delay, a smarter way to blink an LED is to use the timer capability to set off the LED control (code from here) Scanning & Connecting to WiFi We'll continue with a quick demo of scanning for WiFi and connecting. Once you're back at the Lua prompt, set the ESP8266 into WiFi Client mode with Then you can run the scanner and have it print out the available AP's or for more detail... -- Pin definition local pin = 3 local status = gpio.LOW local duration = 1000 -- 1 second duration for timer -- Initialising pin gpio.mode(pin, gpio.OUTPUT) gpio.write(pin, status) -- Create an interval tmr.alarm(0, duration, 1, function () if status == gpio.LOW then status = gpio.HIGH else status = gpio.LOW end gpio.write(pin, status) end) wifi.setmode(wifi.STATION) -- print ap list function listap(t) for k,v in pairs(t) do print(k.." : "..v) end end wifi.sta.getap(listap) © Adafruit Industries https://learn.adafruit.com/adafruit-feather-huzzah-esp8266 Page 29 of 42 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |