Search found 1 match
- Thu Nov 18, 2021 7:35 am
- Forum: General Discussion and Questions
- Topic: How to include driver into micropython compilation
- Replies: 21
- Views: 169263
Re: How to include driver into micropython compilation
import network from usocket import socket from machine import Pin,SPI import rp2 def main(): spi=SPI(0,2_000_000, mosi=Pin(19),miso=Pin(16),sck=Pin(18)) nic = network.WIZNET5K(spi,Pin(17),Pin(20)) nic.ifconfig(('192.168.100.20','255.255.255.0','192.168.100.1','8.8.8.8')) while True: if nic.isconnec...