You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
527B

  1. // Print a list of error codes, symbols, and comments.
  2. #include "SdFat.h"
  3. void setup() {
  4. Serial.begin(9600);
  5. while (!Serial) {}
  6. delay(1000);
  7. Serial.println();
  8. Serial.println(F("Code,Symbol - failed operation"));
  9. for (uint8_t code = 0; code <= SD_CARD_ERROR_UNKNOWN; code++) {
  10. Serial.print(code < 16 ? "0X0" : "0X");
  11. Serial.print(code, HEX);
  12. Serial.print(",");
  13. printSdErrorSymbol(&Serial, code);
  14. Serial.print(" - ");
  15. printSdErrorText(&Serial, code);
  16. Serial.println();
  17. }
  18. }
  19. void loop() {}