| 231 | } |
| 232 | |
| 233 | bool sdInit() |
| 234 | { |
| 235 | // select between hardware SPI or software SPI. Comment out one or the other |
| 236 | // SDCardSPI = new SPISoft(PIN_CARD_DO, PIN_CARD_DI, PIN_CARD_CK, 0); |
| 237 | SDCardSPI = &SPI; |
| 238 | if(!SDCard_begin(PIN_CARD_SS, SPI_FREQ_LIMIT)) { |
| 239 | Serial.println(_F("SPI init failed")); |
| 240 | return false; |
| 241 | } |
| 242 | |
| 243 | return true; |
| 244 | } |
| 245 | |
| 246 | void runTest(uint32_t state = 0) |
| 247 | { |
no test coverage detected