mirror of https://github.com/arendst/Tasmota.git
Updated PN532 (markdown)
parent
3876ea20ee
commit
79175b5792
8
PN532.md
8
PN532.md
|
@ -18,12 +18,18 @@ Please make sure the breakout board you order has the I2C pins (SDA and SCL) bro
|
|||
|
||||
The driver for the PN532 is not included in any of the default release binaries so you will need to compile your own binary for the purpose of using the PN532.
|
||||
|
||||
To enable it prior to compilation you need to uncomment the following two lines in your `my_user_config.h` file.
|
||||
To enable it prior to compilation you need to uncomment the following one or more lines in your `my_user_config.h` file, depending on your use-case.
|
||||
|
||||
Please note that the DATA field functionality has proven to work on some cards/tags but not all cards/tags - Please see Issue https://github.com/arendst/Sonoff-Tasmota/issues/4941 for more information about this.
|
||||
|
||||
`#define USE_PN532_I2C`
|
||||
|
||||
`#define USE_PN532_DATA_FUNCTION`
|
||||
|
||||
`#define USE_PN532_CAUSE_EVENTS`
|
||||
|
||||
Please note that `USE_PN532_DATA_FUNCTIONS` are experimental - See Issue https://github.com/arendst/Sonoff-Tasmota/issues/4941 for more information as we are still researching the limitations of this usage because it seems not all cards are supported by this driver yet.
|
||||
|
||||
The latter is only necessary if you need to perform actions on the local device using rules. If you only plan to handle the resulting scanned information on your home automation software then you do not need to uncomment `#define USE_PN532_CAUSE_EVENTS` as it has no use if you are not going to take an action on the device itself.
|
||||
|
||||
Once you have compiled and uploaded your new firmware you will need to configure the usual (such as your wifi configuration and MQTT server configuration etc) and when complete proceed to enable I2C pins for SDA and SCL on your ESP8266 device.
|
||||
|
|
Loading…
Reference in New Issue