Has anyone had success hooking up an SD card to the Photon and writing/reading data?


#41

If you hit the SHOW RAW button in Web IDE when you see the error, you’ll find out that it is related to this line

  if (!sd.begin(chipSelect, SPI_HALF_SPEED)) 

You should be able to use SPI_FULL_SPEED instead, but if that produces communication errors you can use SD_SCK_HZ(4 * MHZ) instead of SPI_HALF_SPEED.


#42

Thanks it compiled successfully!


split this topic #43

6 posts were split to a new topic: How to play audio file with Photon