The PyGamer has a built-in SD card connected to a SPI bus, so no wiring or soldering is needed!
To mount the SD card, use the following code. Remember, to put it in the file mount_sd.py on CIRCUITPY so you can easily call it from code.py or the REPL with import mount_sd
.
import board import sdcardio import storage spi = board.SPI() cs = board.SD_CS sdcard = sdcardio.SDCard(spi, cs) vfs = storage.VfsFat(sdcard) storage.mount(vfs, "/sd")


