Skip to content

Commit a70ea39

Browse files
committed
Add Adafruit and Particle Ethernet FeatherWing to demo
1 parent 8d59ef3 commit a70ea39

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/wiznet5k_wsgiserver_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,20 @@ def get_static_file(filename):
5757
led.brightness = 0.3
5858
led[0] = (255, 0, 0)
5959

60-
# PoE-FeatherWing connections
60+
# Chip Select for PoE-FeatherWing and Adafruit Ethernet FeatherWing
6161
cs = digitalio.DigitalInOut(board.D10)
62+
# Chip Select for Particle Ethernet FeatherWing
63+
# cs = digitalio.DigitalInOut(board.D5)
64+
65+
# Initialize SPI and I2C bus
6266
spi_bus = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
6367
i2c = busio.I2C(board.SCL, board.SDA)
6468

6569
try:
6670
# Read the MAC from the 24AA02E48 chip
6771
mac = get_mac(i2c)
6872
except OSError:
73+
# Hard coded MAC if there is no 24AA02E48
6974
mac = b"\xFE\xED\xDE\xAD\xBE\xEF"
7075

7176
# Initialize Ethernet interface with DHCP

0 commit comments

Comments
 (0)