Hello!
I would like to use for example this: https://www.shenzhen2u.com/FPC1020-Fing ... sensor-kit with ha Z-Uno (libraries can be downloaded further down on that page). Since Z-Uno offer no softwareserial the hardwareserial is to be used but I don't understand enough to re-write the libraries for Z-Uno. Can someone help with this or point me in the direction where i can learn it? I have some knowledge about programming Arduino and C (but it's been a while).
Regards,
Eric
Fingerprintreader FPC1020
Re: Fingerprintreader FPC1020
Any help is really appreciated!
Ok, so i tried changing all softwareserial to hardwareserial by for example:
FPC1020.h
to
and
FPC1020.cpp
to
and some more.
I get this error message:
Ok, so i tried changing all softwareserial to hardwareserial by for example:
FPC1020.h
Code: Select all
public:
FPC1020(SoftwareSerial *ser);
Code: Select all
public:
FPC1020();
FPC1020.cpp
Code: Select all
FPC1020::FPC1020(SoftwareSerial *ser) {
mySerial = ser; // ...override gpsHwSerial with value passed.
mySerial->begin(19200);
}
Code: Select all
FPC1020::FPC1020() {
Serial0.begin(19200);
}
I get this error message:
Code: Select all
Arduino:1.8.5 (Windows 7), Kort:"Z-Wave>ME Z-Uno, Europe, Disabled, Enabled, Disabled, Disabled"
************* Building Arduino Sketch *************
C:\Users\Eric\AppData\Local\Temp\arduino_build_527745/FPC1020_test.ino
***************************************************
--- USING a list of libraries from:
C:\Users\Eric\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.3\libraries
\\STABEDC1\Users$\Eric\Documents\Arduino\libraries
*** Collecting prototypes...
Preprocessing file: Custom.c with SDCPP...
Preprocessing file: Print.cpp with SDCPP...
Compiling Print_sdcpp_.cpp ...
Preprocessing file: Stream.cpp with SDCPP...
Compiling Stream_sdcpp_.cpp ...
Preprocessing file: HardwareSerial.cpp with SDCPP...
Compiling HardwareSerial_sdcpp_.cpp ...
Preprocessing file: HLCore.cpp with SDCPP...
Compiling HLCore_sdcpp_.cpp ...
Preprocessing file: FPC1020.cpp with SDCPP...
In file included from /Arduino.h:2,
from FPC1020.cpp:7:
/ArduinoTypes.h:28:1: warning: "TRUE" redefined
In file included from FPC1020.cpp:6:
/FPC1020.h:17:1: error: this is the location of the previous definition
In file included from /Arduino.h:2,
from FPC1020.cpp:7:
/ArduinoTypes.h:29:1: warning: "FALSE" redefined
In file included from FPC1020.cpp:6:
/FPC1020.h:18:1: error: this is the location of the previous definition
Compiling FPC1020_sdcpp_.cpp ...
FPC1020_sdcpp_.cpp:16:13:error:unknown type name 'HardwareSerial'
FPC1020_sdcpp_.cpp:735:10:error:out-of-line definition of 'FPC1020' does not match any declaration in 'FPC1020'
FPC1020_sdcpp_.cpp:795:13:error:no matching member function for call to 'write'
uCxx returned error code:1
exit status 1
Error compiling for board Z-Wave>ME Z-Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Re: Fingerprintreader FPC1020
Since I didn't get any help here in this matter I also posted at the arduino forum and there some guys helped me find some differences in some Z-Uno implementations. I am now up and running my FPC1020 on the Z-Uno. I'm ironing out some other bugs and will later post my project..
Re: Fingerprintreader FPC1020
Nice to know! You might share your adopted library with the community.
We can not port every sensor to Z-Uno, we do most popular and brings community contribution together. About 30% of existing libraries come from community.
We can not port every sensor to Z-Uno, we do most popular and brings community contribution together. About 30% of existing libraries come from community.