Library for fingerprint R503 Adaptation from Arduino Library
This a library and demo for fingerprint R503
For datasheet, see here -> https://cdn-shop.adafruit.com/product-files/4651/4651_R503%20fingerprint%20module%20user%20manual.pdf
This is an adaptation of Adafruit library (Arduino) to ARM MBED, tested on NUCLEO L073RZ
For this exemple default connexions on NUCLEOL073RZ are :
TX <-> PC_0
RX <-> PC_1
WAKEUP <-> PB_0 , this is an Interrupt , you must connect a pull-up resistor (4K to 15k) between WAKEUP and DC3.3v
Power Supply 3.3v on Arduino connector
3.3VT : 5v on Arduino connector
IMPORTANT !!! There ara yet some bugs with communications UART
main.cpp
- Committer:
- WilliamMarshQMUL
- Date:
- 2017-01-25
- Revision:
- 1:961580c296da
- Parent:
- 0:75835b5692b9
- Child:
- 2:e92d97ac59e4
File content as of revision 1:961580c296da:
#include "mbed.h" #include "rtos.h" DigitalOut myled(LED1); Serial pc(USBTX, USBRX); // tx, rx int main() { char c ; pc.printf("Enter a character>"); while(1) { myled = 0; // turn on c = pc.getc(); myled = 1; // turn off pc.putc(c); pc.putc('\r'); pc.putc('\n'); Thread::wait(500); pc.printf("Enter a character>"); } }