The finger module provides support for the Suprema SFM3500 fingerprint scanner. The module is provides an implementation of the serial transport protocol used by the scanner.
Allocate a new instance with spfinger.new().
The functions spfinger:send(), spfinger:sendTo() and spfinger:sendRaw() support sending a message to the scanner.
Responses from the scanner are provided via the callbacks spfinger.headerReceived(), spfinger.headerReceivedFrom(), spfinger.responseReceived(), spfinger.responseReceivedFrom(), spfinger.dataReceived() and spfinger.error().
A scanned fingerprint image can be received into a pixmap by using the callbacks spfinger.imageStart(), spfinger.imageEnd() and spfinger.imageError(). Minimal image manipulation is available with spfinger:setCrop() and spfinger:setShrink().