Working folder playback from NFC
This commit is contained in:
@@ -25,6 +25,9 @@ i2c:
|
||||
# I2C config left to default. For ESP8266 is:
|
||||
# GPIO5 (D1) -> I2C SCL
|
||||
# GPIO4 (D2) -> I2C SDA
|
||||
scan: False
|
||||
frequency: 100kHz
|
||||
timeout: 13ms #to prevent pn532 timeout
|
||||
|
||||
pn532_i2c:
|
||||
update_interval: 1s
|
||||
@@ -33,7 +36,7 @@ pn532_i2c:
|
||||
- logger.log: "TROVATO TAG!!!!"
|
||||
- dfplayer.play_folder:
|
||||
folder: !lambda 'return 1;'
|
||||
file: !lambda 'return 1;'
|
||||
loop: True
|
||||
on_tag_removed:
|
||||
then:
|
||||
- logger.log: "RIMOSSO TAG!!!!"
|
||||
|
||||
Reference in New Issue
Block a user