File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,20 @@ def get_static_file(filename):
57
57
led .brightness = 0.3
58
58
led [0 ] = (255 , 0 , 0 )
59
59
60
- # PoE-FeatherWing connections
60
+ # Chip Select for PoE-FeatherWing and Adafruit Ethernet FeatherWing
61
61
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
62
66
spi_bus = busio .SPI (board .SCK , MOSI = board .MOSI , MISO = board .MISO )
63
67
i2c = busio .I2C (board .SCL , board .SDA )
64
68
65
69
try :
66
70
# Read the MAC from the 24AA02E48 chip
67
71
mac = get_mac (i2c )
68
72
except OSError :
73
+ # Hard coded MAC if there is no 24AA02E48
69
74
mac = b"\xFE \xED \xDE \xAD \xBE \xEF "
70
75
71
76
# Initialize Ethernet interface with DHCP
You can’t perform that action at this time.
0 commit comments