Files
tftest/include/sd_info.h
DESKTOP-PUHFO60\dsx2016 a1ab088d70 Restore TF card UI and speaker at 20% volume.
Keep calibrated SoftSPI touch mapping unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 18:43:11 +08:00

22 lines
368 B
C

#pragma once
#include <Arduino.h>
struct SdCardInfo {
bool mounted;
bool present;
const char *type;
const char *filesystem;
uint64_t card_bytes;
uint64_t total_bytes;
uint64_t used_bytes;
uint64_t free_bytes;
uint32_t root_files;
String error;
};
bool sd_init();
void sd_deinit();
SdCardInfo sd_read_info();
String format_bytes(uint64_t bytes);