Skip to content

Commit 2ae4d81

Browse files
committed
comment this
1 parent 1fecc90 commit 2ae4d81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_pycamera/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,9 @@ def mount_sd_card(self):
585585
self._card_power.value = True
586586
card_cs = DigitalInOut(board.CARD_CS)
587587
card_cs.switch_to_output(False)
588-
# deinit display and SPI
588+
# deinit display and SPI bus because we need to drive all SD pins LOW
589+
# to ensure nothing, not even an I/O pin, could possibly power the SD
590+
# card
589591
self.deinit_display()
590592
self._spi.deinit()
591593
sckpin = DigitalInOut(board.SCK)

0 commit comments

Comments
 (0)