Support for WizNet hardware, including the WizNet 5500 Ethernet adaptor.


This module is disabled in 6.x and will removed in 7.x. Please use networking libraries instead.

class wiznet.WIZNET5K(spi: busio.SPI, cs: microcontroller.Pin, rst: microcontroller.Pin, dhcp: bool = True)

Wrapper for Wiznet 5500 Ethernet interface

connected :bool

(boolean, readonly) is this device physically connected?

dhcp :bool

(boolean, readwrite) is DHCP active on this device?

  • set to True to activate DHCP, False to turn it off
ifconfig(self, params: Optional[Tuple] = None)

Called without parameters, returns a tuple of (ip_address, subnet_mask, gateway_address, dns_server)

Or can be called with the same tuple to set those parameters. Setting ifconfig parameters turns DHCP off, if it was on.