playfultechnology / audio-guestbook

The "audio guestbook" is a converted telephone handset that guests can use to leave recorded messages at weddings and parties
GNU General Public License v3.0
140 stars 88 forks source link

Multiple Errors while verifying Sketch #89

Open Glowey1 opened 1 year ago

Glowey1 commented 1 year ago

Hello, I am very new to this type of thing but have followed all the guides properly and utilized others issues to help solve some of mine however I am still getting issues when I try to Verify the sketch. This happens while I have all 3 of the Audio Guestbook Code open, the play_sd_wav.cpp code open and the play_sd_wav.h code.

This is the error message coming up, PLEASE Help me get this sorted out!!! Thanks! I have no idea what these are trying to tell me and it is pushing me towards giving up completely.

Arduino: 1.8.19 (Windows 10), TD: 1.58, Board: "Teensy 4.0, Serial + MTP Disk (Experimental), 600 MHz, Faster, US English, Bigger blocks (256 samples)"

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:37: warning: "FILE_READ" redefined

37 | #define FILE_READ 0

  | 

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:23: note: this is the location of the previous definition

23 | #define FILE_READ O_READ

  | 

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:38: warning: "FILE_WRITE" redefined

38 | #define FILE_WRITE 1

  | 

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:24: note: this is the location of the previous definition

24 | #define FILE_WRITE (O_READ | O_WRITE | O_CREAT | O_APPEND)

  | 

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:75:17: error: reference to 'File' is ambiguous

75 | virtual File openNextFile(uint8_t mode=0) = 0;

  |                 ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:47:7: note: 'class File'

47 | class File;

  |       ^~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h: In member function 'File File::openNextFile(uint8_t)':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:216:33: error: 'class FileImpl' has no member named 'openNextFile'

216 | return (f) ? f->openNextFile(mode) : *this;

  |                                 ^~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h: At global scope:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:276:17: error: reference to 'File' is ambiguous

276 | virtual File open(const char *filename, uint8_t mode = FILE_READ) = 0;

  |                 ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:290:9: error: reference to 'File' is ambiguous

290 | File open(const String &filepath, uint8_t mode = FILE_READ) {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:178:9: error: reference to 'File' is ambiguous

178 | File open(uint32_t store, const char *filename, uint32_t mode) {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:287:9: error: reference to 'File' is ambiguous

287 | File index_;

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:288:9: error: reference to 'File' is ambiguous

288 | File file_;

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:289:9: error: reference to 'File' is ambiguous

289 | File child_;

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

In file included from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h: In member function 'uint32_t MTP_class::addFilesystem(SDLib::SDClass&, const char*)':

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:78:25: error: no matching function for call to 'MTP_class::addFilesystem(SDLib::SDClass&, const char*&, mtp_fstype_t)'

78 | return addFilesystem(disk, diskname, MTP_FSTYPE_SD);

  |            ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:76:12: note: candidate: 'uint32_t MTP_class::addFilesystem(SDLib::SDClass&, const char*)'

76 | uint32_t addFilesystem(SDClass &disk, const char *diskname) {

  |            ^~~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:76:12: note: candidate expects 2 arguments, 3 provided

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:82:12: note: candidate: 'uint32_t MTP_class::addFilesystem(FS&, const char*, mtp_fstype_t)'

82 | uint32_t addFilesystem(FS &disk, const char *diskname, mtp_fstype_t fstype = MTP_FSTYPE_UNKNOWN);

  |            ^~~~~~~~~~~~~

C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:82:30: note: no known conversion for argument 1 from 'SDLib::SDClass' to 'FS&'

82 | uint32_t addFilesystem(FS &disk, const char *diskname, mtp_fstype_t fstype = MTP_FSTYPE_UNKNOWN);

  |                          ~~~~^~~~

In file included from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:31:

C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\play_sd_wav.h: At global scope:

play_sd_wav.h:49: error: reference to 'File' is ambiguous

49 | File wavfile;

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

Audio_Guestbook_Test:63: error: reference to 'File' is ambiguous

63 | File frec;

  | ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

Audio_Guestbook_Test: In function 'void setup()':

Audio_Guestbook_Test:158: error: 'FsDateTime' has not been declared

158 | FsDateTime::setCallback(dateTime);

  |   ^~~~~~~~~~

Audio_Guestbook_Test: In function 'void startRecording()':

Audio_Guestbook_Test:277: error: 'frec' was not declared in this scope; did you mean 'free'?

277 | frec = SD.open(filename, FILE_WRITE);

  |   ^~~~

  |   free

Audio_Guestbook_Test: In function 'void continueRecording()':

Audio_Guestbook_Test:309: error: 'frec' was not declared in this scope; did you mean 'free'?

309 | frec.write(buffer, sizeof buffer);

  |     ^~~~

  |     free

Audio_Guestbook_Test: In function 'void stopRecording()':

Audio_Guestbook_Test:333: error: 'frec' was not declared in this scope; did you mean 'free'?

333 | frec.write((byte)queue1.readBuffer(), AUDIO_BLOCK_SAMPLESsizeof(int16_t));

  |     ^~~~

  |     free

Audio_Guestbook_Test:339: error: 'frec' was not declared in this scope; did you mean 'free'?

339 | frec.close();

  |   ^~~~

  |   free

Audio_Guestbook_Test: In function 'void playAllRecordings()':

Audio_Guestbook_Test:348: error: reference to 'File' is ambiguous

348 | File dir = SD.open("/");

  |   ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

Audio_Guestbook_Test:351: error: reference to 'File' is ambiguous

351 | File entry = dir.openNextFile();

  |     ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/play_sd_raw.h:32,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Audio/Audio.h:127,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:25:

C:\Program Files (x86)\Arduino\libraries\SD\src/SD.h:28:9: note: candidates are: 'class SDLib::File'

28 | class File : public Stream {

  |         ^~~~

In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Storage.h:35,

             from C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_Teensy-main\src/MTP_Teensy.h:45,

             from C:\Program Files (x86)\Arduino\Audio_Guestbook_Test\Audio_Guestbook_Test.ino:30:

C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/FS.h:101:7: note: 'class File'

101 | class File final : public Stream {

  |       ^~~~

Audio_Guestbook_Test:352: error: 'entry' was not declared in this scope

352 | if (strstr(entry.name(), "greeting"))

  |                ^~~~~

Audio_Guestbook_Test:354: error: 'dir' was not declared in this scope; did you mean 'div'?

354 | entry = dir.openNextFile();

  |                 ^~~

  |                 div

Audio_Guestbook_Test:356: error: 'entry' was not declared in this scope

356 | if (!entry) {

  |          ^~~~~

Audio_Guestbook_Test:366: error: 'entry' was not declared in this scope

366 | if (strstr(entry.name(), ".wav") || strstr(entry.name(), ".WAV")) {

  |                ^~~~~

Audio_Guestbook_Test:377: error: 'entry' was not declared in this scope

377 | entry.close();

  |     ^~~~~

Audio_Guestbook_Test: In function 'void dateTime(uint16_t, uint16_t, uint8_t*)':

Audio_Guestbook_Test:439: error: 'FS_DATE' was not declared in this scope; did you mean 'LS_DATE'?

439 | *date = FS_DATE(year(), month(), day());

  |           ^~~~~~~

  |           LS_DATE

Audio_Guestbook_Test:442: error: 'FS_TIME' was not declared in this scope; did you mean 'FAT_TIME'?

442 | *time = FS_TIME(hour(), minute(), second());

  |           ^~~~~~~

  |           FAT_TIME

Audio_Guestbook_Test: In function 'void writeOutHeader()':

Audio_Guestbook_Test:470: error: 'frec' was not declared in this scope; did you mean 'free'?

470 | frec.seek(0);

  |   ^~~~

  |   free

reference to 'File' is ambiguous

Kenitilas commented 1 year ago

Hey I am not a pro as well but for me it seems like you have some issues with the standard libraries. I can tell you how I did it: • I downloaded the portable version of Arduino so I can separate my projects https://downloads.arduino.cc/arduino-1.8.19-windows.zip • Then I installed the Teensyduino (Version 1.58) with all modules selected (for the current version there are more needed than shown in the video) https://www.pjrc.com/teensy/td_158/TeensyduinoInstall.exe • Copy the files “platform.txt” and “boards.local.txt” to “…\hardware\teensy\avr” (wherever your portable Arduino installation is located) • Get the MTP_Teensy from (link) and copy the folder to “…\hardware\teensy\avr\libraries” (I usually remove the “-main” from the folder name cause this can lead to issues if you keep it) https://github.com/KurtE/MTP_Teensy • Your settings for the teensy board seem to be right. I read in the Issues that a CPU Speed of 150 MHz won’t hurt the program but can save a lot of battery

I hope you can solve your problems!

Glowey1 commented 1 year ago

@Kenitilas Thank you, I'll give these things a try. I have taken the code just as it is on Github and the issue appears to be coming from one of the play_sd tabs I have open. Hoping to dive more into it this week and figure it out.

Glowey1 commented 1 year ago

@Kenitilas, I am happy to say that after uninstalling Everything and starting from scratch, I was able to successfully compile the sketch without errors and upload it to my Teensy. I have not yet had a chance to test it with the phone but so far, moving in the right direction!