如何在adalogger中修复sdcard模块中Circuitpython的OverflowError?

时间:2019-11-13 14:51:40

标签: adafruit adafruit-circuitpython

尝试读取我的SD卡时出现以下错误:

  

OverflowError:此版本不支持long int

我的代码是:

SD_CS = board.SD_CS # setup for M0 Adalogger; change as needed

# Connect to the card and mount the filesystem.
spi = busio.SPI(board.SCK, board.MOSI, board.MISO)
cs = digitalio.DigitalInOut(SD_CS)
sdcard = adafruit_sdcard.SDCard(spi, cs)
vfs = storage.VfsFat(sdcard)
storage.mount(vfs, "/sd")

0 个答案:

没有答案