Skip to content

no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&)' in ver 2.6.0 #6737

Closed
@tihoangyeudau

Description

@tihoangyeudau
fatal: not a git repository (or any of the parent directories): .git
GyverMatrixOS_v1.13:478:34: error: no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&)'

 SoftwareSerial mp3Serial(SRX, STX);
                                  ^

C:\Users\tuant\Desktop\GyverMatrixWiFi-master\firmware\GyverMatrixOS_v1.13\GyverMatrixOS_v1.13.ino:478:34: note: candidate is:

In file included from C:\Users\tuant\Desktop\GyverMatrixWiFi-master\firmware\GyverMatrixOS_v1.13\GyverMatrixOS_v1.13.ino:18:0:

C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\SoftwareSerial\src/SoftwareSerial.h:49:5: note: SoftwareSerial::SoftwareSerial()

     SoftwareSerial();
     ^

C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\SoftwareSerial\src/SoftwareSerial.h:49:5: note:   candidate expects 0 arguments, 2 provided

C:\Users\tuant\Desktop\GyverMatrixWiFi-master\firmware\GyverMatrixOS_v1.13\dfplayer.ino: In function 'void InitializeDfPlayer1()':

dfplayer:2:23: error: no matching function for call to 'SoftwareSerial::begin(int)'

   mp3Serial.begin(9600);  
                       ^

C:\Users\tuant\Desktop\GyverMatrixWiFi-master\firmware\GyverMatrixOS_v1.13\dfplayer.ino:2:23: note: candidate is:

In file included from C:\Users\tuant\Desktop\GyverMatrixWiFi-master\firmware\GyverMatrixOS_v1.13\GyverMatrixOS_v1.13.ino:18:0:

C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\SoftwareSerial\src/SoftwareSerial.h:53:10: note: void SoftwareSerial::begin(uint32_t, int8_t, int8_t, SoftwareSerialConfig, bool, int, int)

     void begin(uint32_t baud, int8_t rxPin, int8_t txPin = -1,
          ^

C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\SoftwareSerial\src/SoftwareSerial.h:53:10: note:   candidate expects 7 arguments, 1 provided

Multiple libraries were found for "DFRobotDFPlayerMini.h"
 Used: C:\Users\tuant\Documents\Arduino\libraries\DFRobotDFPlayerMini
Multiple libraries were found for "GyverButton.h"
 Used: C:\Users\tuant\Documents\Arduino\libraries\GyverButton
Multiple libraries were found for "GyverFilters.h"
 Used: C:\Users\tuant\Documents\Arduino\libraries\GyverFilters
Multiple libraries were found for "ESP8266WiFi.h"
 Used: C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\ESP8266WiFi
Multiple libraries were found for "TimeLib.h"
 Used: C:\Users\tuant\Documents\Arduino\libraries\Time
Multiple libraries were found for "EEPROM.h"
 Used: C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\EEPROM
Multiple libraries were found for "SoftwareSerial.h"
 Used: C:\Users\tuant\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.0\libraries\SoftwareSerial
Multiple libraries were found for "FastLED.h"
 Used: C:\Users\tuant\Documents\Arduino\libraries\FastLED
exit status 1
no matching function for call to 'SoftwareSerial::SoftwareSerial(const uint8_t&, const uint8_t&)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions