{"NAME":"S2 Mini v1.0.0","GPIO":[32,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0],"FLAG":0,"BASE":1}
PIN |
DESC |
GPIO16 |
I2S BCLK |
GPIO17 |
I2S DOUT |
GPIO21 |
I2S WS |
GPIO34 |
SDCard CS |
GPIO35 |
SPI MOSI |
GPIO36 |
SPI CLK |
GPIO37 |
SPI MISO |
// Play Audio
Backlog Rule1 1;
Rule1
ON mqtt#connected DO Subscribe HD, tasmota/sensors/HD ENDON
ON mqtt#connected DO Subscribe HDB, tasmota/sensors/HDB ENDON
ON mqtt#connected DO Subscribe G, tasmota/sensors/G ENDON
ON mqtt#connected DO Subscribe GD, tasmota/sensors/GD ENDON
ON Event#HD DO i2splay +/sounds/HD%value%.mp3 ENDON
ON Event#HDB DO i2splay +/sounds/HDB.mp3 ENDON
ON Event#G DO i2splay +/sounds/G%value%.mp3 ENDON
ON Event#GD DO i2splay +/sounds/GD%value%.mp3 ENDON
Rule2
ON Time#Minute|30 DO IF (((%time%) % 60) == 30) i2splay +/sounds/PC/PC1.mp3 ELSE IF (((%time%) % 60) == 0) Var1=%time%/60; i2splay +/sounds/PC/PC%var1%.mp3 ENDIF ENDON