วันพฤหัสบดีที่ 27 กรกฎาคม พ.ศ. 2566

raspberry pi pico first run

#blink led
import machine
import time

led= machine.Pin('LED', machine.Pin.OUT)

while (True):
    led.on()
    time.sleep(0.5)
    led.off()
    time.sleep(0.5

Scan AccessPoints 
import network
wlan=network.WLAN(network.STA_IF)
wlan.active(True)

accesspoints = wlan.scan()
for ap in accesspoints:
        print(ap)

ไม่มีความคิดเห็น: