|
15 | 15 | * - Delete all existing fingerprints |
16 | 16 | * - Validate a fingerprint |
17 | 17 | * |
18 | | - * This version of this example uses the I2C interface to communicate with the sensor. |
| 18 | + * This version of this example uses the SPI interface to communicate with the sensor. |
19 | 19 | * |
20 | 20 | * Example Setup: |
21 | | - * - Connect the SparkFun Qwiic FPC2534 Fingerprint sensor to your microcontroller using a qwiic cable. |
22 | | - * NOTE: Due to for structure of I2C communications implemented by the FPC2534 sensor, only |
23 | | - * ESP32 and Raspberry Pi RP2 microcontrollers are supported by this Arduino Library. |
| 21 | + * - Connect the SparkFun Qwiic FPC2534 Fingerprint sensor to your microcontroller using hook-up wires ... |
| 22 | + * setup for SPI communication. Note the CS PIN number - this needs to be defined below. |
24 | 23 | * - Connect the RST pin on the sensor to a digital pin on your microcontroller. This is used by the |
25 | 24 | * example to "reset the sensor" on startup. |
26 | 25 | * - Connect the IRQ pin on the sensor to a digital pin on your microcontroller. The sensor triggers |
27 | 26 | * an interrupt on this pin when it has data to send. |
28 | 27 | * - Update the IRQ_PIN and RST_PIN defines below to match the pins you are using. |
29 | 28 | * |
30 | 29 | * Operation: |
31 | | - * - On startup, the example "pings" the sensor address to verify it is present on the I2C bus. |
32 | | - * - If the sensor is found, the example initializes the sensor library and resets the sensor. |
33 | | - * NOTE: A reset appears to be needed after the I2C ping is sent. |
34 | | - * - The sensor object is initialized with the sensor address, interrupt pin, and the Wire object. |
35 | | - * NOTE: The I2C bus number is also provided, to allow the library to perform the low-level I2C commands |
36 | | - * required to read data from the sensor. This is needed due to the way the FPC2534 implements I2C. |
| 30 | + * - The sensor object is initialized with the CS pin and the interrupt pin. This examples uses the default SPI bus. |
37 | 31 | * - The example registers several callback functions with the sensor library. These functions are called as |
38 | 32 | * messages are received from the sensor. |
39 | 33 | * - Once running, the example prevents a menu with the following options: |
|
64 | 58 | //---------------------------------------------------------------------------- |
65 | 59 | // UPDATE THESE DEFINES TO MATCH YOUR HARDWARE SETUP |
66 | 60 | // |
67 | | -// These are the pins the IRQ and RST pins of the sensor are connected to the microcontroller. |
| 61 | +// These are the pins the CS, IRQ and RST pins of the sensor are connected to the microcontroller. |
68 | 62 | // |
69 | 63 | // NOTE: The IRQ pin must be an interrupt-capable pin on your microcontroller |
70 | 64 | // |
|
0 commit comments