:mod:`wiznet` ============= .. py:module:: wiznet .. autoapi-nested-parse:: Support for WizNet hardware, including the WizNet 5500 Ethernet adaptor. .. py:class:: WIZNET5K(spi: busio.SPI, cs: microcontroller.Pin, rst: microcontroller.Pin, dhcp: bool = True) Wrapper for Wiznet 5500 Ethernet interface .. attribute:: connected :annotation: :Any (boolean, readonly) is this device physically connected? .. attribute:: dhcp :annotation: :Any (boolean, readwrite) is DHCP active on this device? * set to True to activate DHCP, False to turn it off .. method:: ifconfig(self, params: Any = 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.