pyboard ethernet connection
Posted: Thu Jun 09, 2022 8:53 pm
Using a pyblitev1.0 and firmware update 'pyblitev10-20220117-v1.18.dfu' I'm trying to import network and use the WIZNET5k class to connect to my ethernet port.
code:
import pyb
import network
nic = network.WIZNET5K(pyb.SPI(1), pyb.Pin.board.X5, pyb.Pin.board.X4)
print(nic.ifconfig())
returns:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
AttributeError: 'module' object has no attribute 'WIZNET5K'
I've double checked all of my connections and I have no idea for a fix. Thanks for your help,
code:
import pyb
import network
nic = network.WIZNET5K(pyb.SPI(1), pyb.Pin.board.X5, pyb.Pin.board.X4)
print(nic.ifconfig())
returns:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
AttributeError: 'module' object has no attribute 'WIZNET5K'
I've double checked all of my connections and I have no idea for a fix. Thanks for your help,