Skip to content

Instantly share code, notes, and snippets.

@JohnMcLear
Created February 3, 2026 13:36
Show Gist options
  • Select an option

  • Save JohnMcLear/9144f9601df80a0213b1822139f296bb to your computer and use it in GitHub Desktop.

Select an option

Save JohnMcLear/9144f9601df80a0213b1822139f296bb to your computer and use it in GitHub Desktop.
esphome:
name: esp32_pn7160
esp32:
board: esp32dev
framework:
type: arduino
logger:
# I2C bus for PN7160 (SDA=21, SCL=22)
i2c:
sda: 21
scl: 22
frequency: 400kHz
# PN7160 NFC over I2C
pn7160_i2c:
id: my_pn7160
dwl_req_pin: 19
irq_pin: 14
ven_pin: 13
wkup_req_pin: 23
tag_ttl: 1000ms
emulation_message: https://www.home-assistant.io/tag/pulse_ce
on_tag:
logger.log: "Tag detected"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment