Connect a microSD reader to a LilyPad USB, where are the digital ports?
The programming header will have MISO, MOSI and SCK. Use a multimeter to check continuity from the header to the Atmega32u4 pins.

The mapping between Atmega32u4 and Arduino pin numbers is here. I don't see a digital pin 17 in the mapping, so use a digital pin which exists and change the library. The schematic shows A2, A3, A4, A5, D2, D3, D9, D10 and D11 as the 9 IO pins on the exterior of the pcb, or you could bodge wire directly to another pin of the MCU.