adafruit / Adafruit_CircuitPython_PyPortal

CircuitPython driver for Adafruit PyPortal.
MIT License
45 stars 56 forks source link

Update to PR #34 #62

Closed FoamyGuy closed 4 years ago

FoamyGuy commented 4 years ago

I've updated in the changes from adafruit/master into the branch used for PR #34.

I tested this library change using this code:

from adafruit_pyportal import PyPortal
pyportal = PyPortal()
if pyportal.sd_check():
    print("SD card is installed")
else:
    print("SD card is NOT installed")

It does work as expected, correctly printing the SD state depending on whether the physical SD card is plugged in or not.