Python 3 driver for Fingerprint Scanner GT-511C3
- Input
- port: <string>
- baud: <integer> data exchange speed
- timeout: <integer> seconds for timeout
To connect a fingerprint scanner
- Input: None
- Output: <boolean>
To open the fingerprint scanner
- Input: None
- Output: <boolean>
To close the fingerprint scanner
- Input: None
- Output: <boolean>
To turn light on or off
- Input
- on: <boolean> True for turning on the light and False for turning off the light
- Output: <boolean>
To turn light on or off
- Input: None
- Output: <integer> The number of enrolled users
To check if a finger is pressed or not
- Input: None
- Output: <boolean>
To change the baud rate from 9600 to 115200 (or below)
- Input
- baud: <integer> A number between 9600 and 115200
To enroll a fingerprint with an ID
- Input
- idx: <integer> An ID of the fingerprint
- Output: <integer> An enrolled fingerprint ID (-1 when failed)
To delete enrolled fingerprints
-
Input
-
idx: An fingerprint ID to delete (None for deleting all enrolled fingerprints)
-
Output: <boolean>
To identify a fingerprint
- Input: None
- Output: <integer>: An identified fingerprint ID (-1 when failed to identify)