plasma
plasma copied to clipboard
Using EzWifi with a Plasma 2350 + RM2 module
If you're using a non-W Plasma 2350 + RM2 module combo and want to use it with these wireless examples, you can save a copy of ezwifi.py to your board and modify the following line:
self._if = network.WLAN(network.STA_IF)
to the following, to specify the correct pins for the wireless module:
self._if = network.WLAN(network.STA_IF, pin_on=8, pin_out=11, pin_in=11, pin_wake=11, pin_clock=10, pin_cs=9)
Perhaps there's a nicer way of doing this?
How about:
import ezwifi
ezwifi.connect(pin_on=8, pin_out=11, pin_in=11, pin_wake=11, pin_clock=10, pin_cs=9)
I've pushed a commit to make this work, though it strikes me that it's not very... ez...
New development: https://github.com/pimoroni/ezwifi-micropython
EzWiFi still still get vendored into individual products, but it makes sense to have a source of truth for the library so these little improvements don't get hopelessly lost in one product repo.
Looks like I never hit submit on my message about the other tweak...
https://github.com/pimoroni/plasma/pull/8/commits/c0dbbd388445583d213dd0c57ce27b3c73e608e4
Just using spce=True will automatically use the Plasma SPCE pins and avoid having to add them by hand.