1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Pn532 upgrades (#1302)

* Move pn532 -> pn532_spi
Add pn532_i2c

* Update i2c address

* Always wait for ready byte before reading

* Generalise the pn532 a bit more so less code in i2c and spi implementations

* clang

* Add pn532_i2c to test1

* Try to get setup working

* Fixes

* More updates

* Command consts

* A few upgrades

* Change text back to include 'new'

* Fix data reading
This commit is contained in:
Jesse Hills
2020-11-01 11:55:48 +13:00
committed by GitHub
parent 22e1758d5b
commit 0059a6de46
12 changed files with 415 additions and 261 deletions

View File

@@ -1645,7 +1645,7 @@ remote_receiver:
status_led:
pin: GPIO2
pn532:
pn532_spi:
cs_pin: GPIO23
update_interval: 1s
on_tag:
@@ -1655,6 +1655,8 @@ pn532:
topic: the/topic
payload: !lambda 'return x;'
pn532_i2c:
rdm6300:
rc522_spi: