Hallo,
irgendwie bekomme ich es nicht wirklich hin.
Ich vermute mein Hauptproblem ist, dass wenn ich den Arduino programmieren will ich mit einer langen Reihe Fehler konfrontiert werde.
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino: In function ‚int voiceMenu(int, int, int, bool, int)‘:
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:338:62: warning: default argument given for parameter 4 of ‚int voiceMenu(int, int, int, bool, int)‘ [-fpermissive]
bool preview = false, int previewFromFolder = 0) { ^
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:25:5: note: previous specification in ‚int voiceMenu(int, int, int, bool, int)‘ here
int voiceMenu(int numberOfOptions, int startMessage, int messageOffset,
^
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:338:62: warning: default argument given for parameter 5 of ‚int voiceMenu(int, int, int, bool, int)‘ [-fpermissive]
bool preview = false, int previewFromFolder = 0) { ^
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:25:5: note: previous specification in ‚int voiceMenu(int, int, int, bool, int)‘ here
int voiceMenu(int numberOfOptions, int startMessage, int messageOffset,
^
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino: In function ‚bool readCard(nfcTagObject*)‘:
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:487:5: warning: return-statement with no value, in function returning ‚bool‘ [-fpermissive]
return; ^
In file included from C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:1:0:
C:\Users\Ford\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h: In instantiation of ‚void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD>::sendPacket(uint8_t, uint16_t, uint16_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; uint8_t = unsigned char; uint16_t = unsigned int]‘:
C:\Users\Ford\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:112:19: required from ‚void DFMiniMp3<T_SERIAL_METHOD, T_NOTIFICATION_METHOD>::playFolderTrack(uint8_t, uint8_t) [with T_SERIAL_METHOD = SoftwareSerial; T_NOTIFICATION_METHOD = Mp3Notify; uint8_t = unsigned char]‘
C:\Users\Ford\Desktop\Tonuino\Tonuino.ino:80:54: required from here
C:\Users\Ford\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:306:114: warning: narrowing conversion of ‚(arg >> 8)‘ from ‚uint16_t {aka unsigned int}‘ to ‚uint8_t {aka unsigned char}‘ inside { } [-Wnarrowing]
uint8_t out[DfMp3_Packet_SIZE] = { 0x7E, 0xFF, 06, command, 00, (arg >> 8), (arg & 0x00ff), 00, 00, 0xEF }; ^
C:\Users\Ford\Documents\Arduino\libraries\DFPlayer_Mini_Mp3_by_Makuna\src/DFMiniMp3.h:306:114: warning: narrowing conversion of ‚(arg & 255u)‘ from ‚uint16_t {aka unsigned int}‘ to ‚uint8_t {aka unsigned char}‘ inside { } [-Wnarrowing]
In file included from C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp:8:0:
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.h: In constructor ‚MFRC522Extended::MFRC522Extended(uint8_t)‘:
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.h:81:44: warning: ‚MFRC522::MFRC522(byte)‘ is deprecated: use MFRC522(byte chipSelectPin, byte resetPowerDownPin) [-Wdeprecated-declarations]
MFRC522Extended(uint8_t rst) : MFRC522(rst) {};
^
In file included from C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.h:10:0,
from C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522Extended.cpp:8:
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.h:339:2: note: declared here
MFRC522(byte resetPowerDownPin);
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp: In member function ‚bool MFRC522::MIFARE_SetUid(byte*, byte, bool)‘:
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1853:7: warning: ‚bool MFRC522::MIFARE_OpenUidBackdoor(bool)‘ is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
if (!MIFARE_OpenUidBackdoor(logErrors)) {
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1709:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1853:39: warning: ‚bool MFRC522::MIFARE_OpenUidBackdoor(bool)‘ is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
if (!MIFARE_OpenUidBackdoor(logErrors)) {
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1709:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp: In member function ‚bool MFRC522::MIFARE_UnbrickUidSector(bool)‘:
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1882:2: warning: ‚bool MFRC522::MIFARE_OpenUidBackdoor(bool)‘ is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
MIFARE_OpenUidBackdoor(logErrors);
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1709:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1882:34: warning: ‚bool MFRC522::MIFARE_OpenUidBackdoor(bool)‘ is deprecated: will move to extra class in next version [-Wdeprecated-declarations]
MIFARE_OpenUidBackdoor(logErrors);
^
C:\Users\Ford\Documents\Arduino\libraries\MFRC522\src\MFRC522.cpp:1709:6: note: declared here
bool MFRC522::MIFARE_OpenUidBackdoor(bool logErrors) {
^
Der Sketch verwendet 15196 Bytes (49%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 518 Bytes (25%) des dynamischen Speichers, 1530 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
Die 3 Bibliotheken habe ich eingebunden. Ich habe aber das Gefühl es stimmt schon was nicht bevor der Code überhaupt auf den Arduino gespielt wird.
Was ist der vollkommen offensichtliche Anfängerfehler den ich gemacht habe? Bin für jeden hilfreichen Kommentar dankbar.