Skip to content

Instantly share code, notes, and snippets.

@13
Last active April 8, 2023 21:39
Show Gist options
  • Save 13/468903ea0f2f4a0fd2df86899f22506c to your computer and use it in GitHub Desktop.
Save 13/468903ea0f2f4a0fd2df86899f22506c to your computer and use it in GitHub Desktop.
Wemos S2 Mini Audio

ESP32 Audio Player

Wemos S2 Mini

{"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

Door sounds

// 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

Pendeluhr

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

TODO

  • Christmas Easteregg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment