We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ecae6f commit 3b31b06Copy full SHA for 3b31b06
examples/ntp_connection_manager.py
@@ -23,17 +23,13 @@
23
except ImportError:
24
import board
25
from digitalio import DigitalInOut
26
+ from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
27
28
# adjust with busio.SPI() as necessary...
29
spi = board.SPI()
- try:
30
- from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K
31
-
32
- # adjust pin for the specific board...
33
- eth_cs = DigitalInOut(board.D10)
34
- radio = WIZNET5K(spi, eth_cs)
35
- except ImportError:
36
- raise
+ # adjust pin for the specific board...
+ eth_cs = DigitalInOut(board.D10)
+ radio = WIZNET5K(spi, eth_cs)
37
38
# get the socket pool from connection manager
39
socket = adafruit_connection_manager.get_radio_socketpool(radio)
0 commit comments