Skip to content

Commit

Permalink
Merge pull request #131 from fasteddy516/improved_reset
Browse files Browse the repository at this point in the history
Improve reset during initialization
FoamyGuy authored Sep 17, 2023
2 parents f313673 + d521568 commit d4493cd
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
@@ -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)

0 comments on commit d4493cd

Please sign in to comment.