Will follow up on probably a new (not yet created thread) about about integrating all of the pieces for the hopefully next next release of Teensyduino with more of the FS Integration stuff like MTP and MSC.
As I earlier mentioned up on the Beta1 thread:
This morning @mjs513 updated the forks/branches that we have been working on to use the File stuff from here... I believe the list includes:
Current setup: Arduino 1.8,15 and this beta:
This update is also including our trying to add in the Date/Time stuff, which I know will be subject to change.
cores: with
https://github.com/KurtE/cores/tree/FS_Integration
MTP:
https://github.com/KurtE/MTP_t4/tree/FS_Integration
MSC:
https://github.com/KurtE/UsbMscFat/tree/FS_Integration
LittleFS:
https://github.com/Mjs513/LittleFS/tree/FS_Integration
SD:
https://github.com/KurtE/SD/tree/FS_Integration
It builds
and my simple Example sketch: SD_MTP-logger sketch runs and opens up and shows SD card on the PC...
The dates and times on the SD Card appear to come through and display in details view on the PC explorer window.
However new files created on the SD card are ending up with Bogus Dates and times.
I have a Wrapper class for SD devices that add callback code, such that if you ask for Format on the PC, it will call through our callback to do the formatting. While with this class I added some additional support code, like it will detect if so far on T4.x if SD card is not inserted, but later inserted... I now also have added in the code that SD library code will call back to get the date/time for new file, code based on same code in MTP test sketch... But it is getting bogus data from timelib:
So I added quick test at start of sketch which added:
Code:
Serial.printf("Date: %u %u %u TIme: %u %u %u\n", year(), month(), day(), hour(), minute(), second());
And it printed out: Date: 1970 1 1 TIme: 0 0 5
So wondering about timelib...
Edit: I think I need to set the sync provider will hack that in