Skip to content

Commit

Permalink
Merge pull request #146 from tekktrik/fix/rename-pin-args
Browse files Browse the repository at this point in the history
Change _pin arguments to _dio
  • Loading branch information
FoamyGuy authored Jan 24, 2022
2 parents f00d5f7 + b037a53 commit 86c2c99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions adafruit_esp32spi/adafruit_esp32spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class ESP_SPIcontrol: # pylint: disable=too-many-public-methods, too-many-insta

# pylint: disable=too-many-arguments
def __init__(
self, spi, cs_pin, ready_pin, reset_pin, gpio0_pin=None, *, debug=False
self, spi, cs_dio, ready_dio, reset_dio, gpio0_dio=None, *, debug=False
):
self._debug = debug
self.set_psk = False
Expand All @@ -145,11 +145,11 @@ def __init__(
self._sendbuf = bytearray(256) # buffer for command sending
self._socknum_ll = [[0]] # pre-made list of list of socket #

self._spi_device = SPIDevice(spi, cs_pin, baudrate=8000000)
self._cs = cs_pin
self._ready = ready_pin
self._reset = reset_pin
self._gpio0 = gpio0_pin
self._spi_device = SPIDevice(spi, cs_dio, baudrate=8000000)
self._cs = cs_dio
self._ready = ready_dio
self._reset = reset_dio
self._gpio0 = gpio0_dio
self._cs.direction = Direction.OUTPUT
self._ready.direction = Direction.INPUT
self._reset.direction = Direction.OUTPUT
Expand Down

0 comments on commit 86c2c99

Please sign in to comment.