Skip to content

Commit 2c4889a

Browse files
committed
fix card det
1 parent 216c9bd commit 2c4889a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

adafruit_pycamera.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,8 @@ def __init__(self) -> None:
166166
self.accel.range = adafruit_lis3dh.RANGE_2_G
167167

168168
# built in neopixels
169-
# MEME FIX: https://github.com/adafruit/circuitpython/issues/8488
170-
#neopix = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.1)
171-
#neopix.fill(0)
169+
neopix = neopixel.NeoPixel(board.NEOPIXEL, 1, brightness=0.1)
170+
neopix.fill(0)
172171

173172
# camera!
174173
self._cam_reset = self._aw.get_pin(_AW_CAMRST)
@@ -409,7 +408,7 @@ def unmount_sd_card(self):
409408
def keys_debounce(self):
410409
# shutter button is true GPIO so we debounce as normal
411410
self.shutter.update()
412-
self.card_detect.update(self.carddet_pin)
411+
self.card_detect.update(self.carddet_pin.value)
413412
self.up.update(self.up_pin.value)
414413
self.down.update(self.down_pin.value)
415414
self.left.update(self.left_pin.value)

0 commit comments

Comments
 (0)