1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Add NDEF reading and writing to PN532 (#1351)

This commit is contained in:
Jesse Hills
2021-01-15 09:29:55 +13:00
committed by GitHub
parent 36089a1400
commit 5fcd1e391d
16 changed files with 1206 additions and 55 deletions

View File

@@ -14,7 +14,7 @@ static const char *TAG = "pn532_i2c";
bool PN532I2C::write_data(const std::vector<uint8_t> &data) { return this->write_bytes_raw(data.data(), data.size()); }
bool PN532I2C::read_data(std::vector<uint8_t> &data, uint8_t len) {
delay(5);
delay(1);
std::vector<uint8_t> ready;
ready.resize(1);