Skip to content

Commit

Permalink
Improve reset during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
fasteddy516 committed Jun 29, 2023
1 parent 30aa274 commit d521568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adafruit_wiznet5k/adafruit_wiznet5k.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,12 @@ def __init__(

# Reset wiznet module prior to initialization.
if reset:
debug_msg("* Resetting WIZnet chip", self._debug)
reset.switch_to_output()
reset.value = False
time.sleep(0.1)
reset.value = True
time.sleep(0.1)
time.sleep(5)

# Setup chip_select pin.
time.sleep(1)
Expand Down

0 comments on commit d521568

Please sign in to comment.