djuseeq / Ch376msc

Arduino library for CH376 mass storage contoller
MIT License
77 stars 17 forks source link

DELETE EVERY SINGLE BIT #52

Open toosimit opened 3 years ago

toosimit commented 3 years ago

HI DEAR FIRST, I WANT TO ASK YOU IS THERE ANY WAY TO CLEAR EVERY SINGLE BIT ? SECOND IS THERE ANY WAY TO CHANGE FORMAT ? FAT 12 TO FAT16 OR FAT32 TO NTFS

Meins321 commented 3 years ago

Hello, first of all it would be nice if you could not use all caps letters as it is regarded as yelling in nettiquette usually...

To your question: There is no format command in this library so no easy single command

BUT

  1. delete all files
  2. delete all folder
  3. get size of sd card getTotalSectors();
  4. write everything with one big random file or just ones like this 111111
  5. write everything with 000000

= SD Card destroyed data and needs format after that

djuseeq commented 3 years ago

Hi, sorry for late reply, how @Meins321 mentioned, the library does not support a format command and the chip does not support NTFS file system, only FAT12, FAT16, FAT32.

toosimit commented 3 years ago

Sorry about that Caps Lock was on . thank you for your answers