您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SdErrorCodes.ino 527B

12345678910111213141516171819
  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() {}