Hey,
So I'm working on a science project. I found this code for a project on Github and when trying to verify it, it gives me the error: No matching function for call to 'Adafruit_Fingerprint::Adafuit_Fingerprint(SoftwareSerial)'
Any help would be appreciated but, please speak english.
// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino (WHITE wire) #if ARDUINO >= 100
SoftwareSerial mySerial(4, 5); #else
NewSoftSerial mySerial(4, 5); #endif
AWOL:
The library is probably expecting a pointer to a hardware serial object, and doesn't know what to do with a SoftwareSerial object pointer.
Umm, here's the start of one of Adafruit's example sketches included with the fingerprint library:
#include <Adafruit_Fingerprint.h>
// On Leonardo/Micro or others with hardware serial, use those! #0 is green wire, #1 is white
// uncomment this line:
// #define mySerial Serial1
// For UNO and others without hardware serial, we must use software serial...
// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino (WHITE wire)
// comment these two lines if using hardware serial
SoftwareSerial mySerial(2, 3);
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
void setup()
{
gopalreddy:
ERRoR IS:no matching function for call to 'Adafruit_Fingerprint::Adafruit_Fingerprint(SoftwareSerial*)'
how to solve this error
Read the comment directly above yours. I'm willing to bet you're not using an AVR. If that's the case, then you can't use SoftwareSerial with this class.