WiFi機能付きのPicoが出て、機能的にはESP32とほぼ同等になったのではないか
Raspberry Pi Pico – Raspberry Pi
Raspberry Pi Documentation - Raspberry Pi Pico and Pico W
https://datasheets.raspberrypi.com/picow/connecting-to-the-internet-with-pico-w.pdf
https://datasheets.raspberrypi.com/picow/PicoW-A4-Pinout.pdf
Picoと同様に、MicroPythonが動くようで、WiFiについては、
仕様書「Connecting to the Internet with Raspberry Pi Pico W」
3.6. Connecting to a wireless network
より、以下のコードで接続できるらしい。
import network import time wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect('Wireless Network', 'The Password') while not wlan.isconnected() and wlan.status() >= 0: print("Waiting to connect:") time.sleep(1) print(wlan.ifconfig())
ESP32とほとんど同じ表記と思われる。
WiFiを使いたい場合は、pico-w用ファームを使う必要があるのでは?と思われ、Nightly Buildのみの状況のようです。
MicroPython - Python for microcontrollers
CircuitPythonはPicoに対応したバージョンが以前からリリースされているが、WiFi対応になっているのかどうか不明
多分、、pico-w用のCircuitPythonがリリースされるのではなかろうか。
Raspberry Pi Pico WH - Pico Wireless with Headers Soldered : ID 5544 : $7.00 : Adafruit Industries, Unique & fun DIY electronics and kits