Hans- Joachim Krahe Active Member Licensed User Longtime User Dec 31, 2023 #1 ... wonder, what is wrong with me? When I want to compile a source with #If C #include "DFPlayer_Mini_Mp3.h" Compiler breaks with: " DFPlayer_Mini_Mp3.h: No such file or directory 42 | #include "DFPlayer_Mini_Mp3.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated." I can deal with the error only by copying DFPlayer_Mini_Mp3.h to scetch folder by a watchdog, but what can be the reason? friendly regards and a happy new year hajo
... wonder, what is wrong with me? When I want to compile a source with #If C #include "DFPlayer_Mini_Mp3.h" Compiler breaks with: " DFPlayer_Mini_Mp3.h: No such file or directory 42 | #include "DFPlayer_Mini_Mp3.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated." I can deal with the error only by copying DFPlayer_Mini_Mp3.h to scetch folder by a watchdog, but what can be the reason? friendly regards and a happy new year hajo
Cableguy Expert Licensed User Longtime User Dec 31, 2023 #2 have you tried to use the complete file path? Upvote 0
hatzisn Expert Licensed User Longtime User Dec 31, 2023 #3 I am not c++ literal at any way but I think when you include a library between <> then it looks at the specified arduino folder and if you put them between " " then you have to write the full path f.e."c:\myfolder\DFPlayer_Mini_Mp3.h". Upvote 0
I am not c++ literal at any way but I think when you include a library between <> then it looks at the specified arduino folder and if you put them between " " then you have to write the full path f.e."c:\myfolder\DFPlayer_Mini_Mp3.h".
Cableguy Expert Licensed User Longtime User Dec 31, 2023 #4 hatzisn said: I am not c++ literal at any way but I think when you include a library between <> then it looks at the specified arduino folder and if you put them between " " then you have to write the full path f.e."c:\myfolder\DFPlayer_Mini_Mp3.h". Click to expand... I never tried either... So.... have you tried it? Upvote 0
hatzisn said: I am not c++ literal at any way but I think when you include a library between <> then it looks at the specified arduino folder and if you put them between " " then you have to write the full path f.e."c:\myfolder\DFPlayer_Mini_Mp3.h". Click to expand... I never tried either... So.... have you tried it?
hatzisn Expert Licensed User Longtime User Dec 31, 2023 #5 Cableguy said: I never tried either... So.... have you tried it? Click to expand... I did not but used ready made code (Arduino examples) that did. I am not sure though a hundred per cent that this is the way or the other way around. I am though certain by a fair amount per cent that this is the correct way. Upvote 0
Cableguy said: I never tried either... So.... have you tried it? Click to expand... I did not but used ready made code (Arduino examples) that did. I am not sure though a hundred per cent that this is the way or the other way around. I am though certain by a fair amount per cent that this is the correct way.
hatzisn Expert Licensed User Longtime User Dec 31, 2023 #6 See the example program in this page for the first way: AltSoftSerial Library, for an extra serial port www.pjrc.com Upvote 0
See the example program in this page for the first way: AltSoftSerial Library, for an extra serial port www.pjrc.com
Hans- Joachim Krahe Active Member Licensed User Longtime User Dec 31, 2023 #7 This Code worked before. I resettet arduino, Java and B4R ideto earlyer states, but error kept. Only IDE, I didnt set back, was Windows. So maybe 8 should try win 7? Upvote 0
This Code worked before. I resettet arduino, Java and B4R ideto earlyer states, but error kept. Only IDE, I didnt set back, was Windows. So maybe 8 should try win 7?
hatzisn Expert Licensed User Longtime User Dec 31, 2023 #8 If you use one drive make all files available offline. Upvote 0
Hans- Joachim Krahe Active Member Licensed User Longtime User Jan 1, 2024 #9 hatzisn said: If you use one drive make all files available offline. Click to expand... ... no, I dont. but maybe should deinstall onedrive too... Upvote 0
hatzisn said: If you use one drive make all files available offline. Click to expand... ... no, I dont. but maybe should deinstall onedrive too...
hatzisn Expert Licensed User Longtime User Jan 1, 2024 #10 Hans- Joachim Krahe said: ... no, I dont. but maybe should deinstall onedrive too... Click to expand... It has happened to me and I spent almost an hour trying to figure out what is wrong... Finally a post on the Internet (in Arduino forum I think), saved me. Upvote 0
Hans- Joachim Krahe said: ... no, I dont. but maybe should deinstall onedrive too... Click to expand... It has happened to me and I spent almost an hour trying to figure out what is wrong... Finally a post on the Internet (in Arduino forum I think), saved me.
Hans- Joachim Krahe Active Member Licensed User Longtime User Jan 1, 2024 #11 ât the moment, I am so frustrated with dfplayer lib, that I think, it's easyer, to create byte sequences and send directly to the player. Only need half a dozen like : Private buf() As Byte = Array As Byte (0x7E,0xFF,0x06,0x48,0x00,0x00,0x0F,0xFE,0xA4,0xEF) but thank you for help. Hope, you had a good start to new year Upvote 0
ât the moment, I am so frustrated with dfplayer lib, that I think, it's easyer, to create byte sequences and send directly to the player. Only need half a dozen like : Private buf() As Byte = Array As Byte (0x7E,0xFF,0x06,0x48,0x00,0x00,0x0F,0xFE,0xA4,0xEF) but thank you for help. Hope, you had a good start to new year
Hans- Joachim Krahe Active Member Licensed User Longtime User Jan 2, 2024 #12 Private buf() As Byte = Array As Byte (0x7E,0xFF,0x06,0x48,0x00,0x00,0x0F,0x00,0x00,0xEF) ' query total number of udisk files fill_checksum(buf) private Sub fill_checksum (b2() As Byte) As Byte Dim mysum(2) As Int mysum(0) =0 For i = 1 To b2(2) mysum(0) = mysum(0) - b2(i) Log (i," ",b2(i)," ",mysum(0)) Next Dim sumbyte() As Byte = bc.IntsToBytes(mysum) Log(bc.HexFromBytes(b2)) b2(b2(2)+1)= sumbyte(1) 'umgekehrt einfügen b2(b2(2)+2)= sumbyte(0) Log(bc.HexFromBytes(sumbyte)) Log(bc.HexFromBytes(b2)) 'Return b2 End Sub ... code for generating and filling checksum works. Is anyone interestet to help with the setting of the softserial stream? line function seems not to work in code editmode - sorry ... later, I foud an existing module for cammandlines. so, no more action necessary Last edited: Jan 2, 2024 Upvote 0
Private buf() As Byte = Array As Byte (0x7E,0xFF,0x06,0x48,0x00,0x00,0x0F,0x00,0x00,0xEF) ' query total number of udisk files fill_checksum(buf) private Sub fill_checksum (b2() As Byte) As Byte Dim mysum(2) As Int mysum(0) =0 For i = 1 To b2(2) mysum(0) = mysum(0) - b2(i) Log (i," ",b2(i)," ",mysum(0)) Next Dim sumbyte() As Byte = bc.IntsToBytes(mysum) Log(bc.HexFromBytes(b2)) b2(b2(2)+1)= sumbyte(1) 'umgekehrt einfügen b2(b2(2)+2)= sumbyte(0) Log(bc.HexFromBytes(sumbyte)) Log(bc.HexFromBytes(b2)) 'Return b2 End Sub ... code for generating and filling checksum works. Is anyone interestet to help with the setting of the softserial stream? line function seems not to work in code editmode - sorry ... later, I foud an existing module for cammandlines. so, no more action necessary