Skip to content

Commit b756ef2

Browse files
committed
Update docstrings
1 parent aef2e81 commit b756ef2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_pn532/adafruit_pn532.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _wakeup(self):
201201
raise NotImplementedError
202202

203203
def reset(self):
204-
"""Perform a hardware reset toggle"""
204+
"""Perform a hardware reset toggle and then wake up the PN532"""
205205
if self._reset_pin:
206206
if self.debug:
207207
print("Resetting")
@@ -339,6 +339,10 @@ def process_response(self, command, response_length=0, timeout=1):
339339
return response[2:]
340340

341341
def power_down(self):
342+
"""Put the PN532 into a low power state. If the reset pin is connected a
343+
hard power down is performed, if not, a soft power down is performed
344+
instead. Returns True if the PN532 was powered down successfully or
345+
False if not."""
342346
if self._reset_pin: # Hard Power Down if the reset pin is connected
343347
self._reset_pin.value = False
344348
self.low_power = True

0 commit comments

Comments
 (0)