HowTo
1. install Cmdlet on Windows PC
https://github.com/frgnca/AudioDeviceCmdlets
2. install CH340 (WemosD1 mini) driver
https://www.wemos.cc/en/latest/ch340_driver.html
3. copy "AudioController.ps1" script to your prefered path
4. get COM port for your WemosD1 mini via Powershell (or Windows Device Manager)
Powershell: Get-WMIObject Win32_SerialPort | Select-Object DeviceID,Description
-> change SerialPort Number in "AudioController.ps1" in config section
5. start powershell script via windows scheduled job
#name
soundcontroller
----> *high privileges
----> *hidden
#trigger
at logon
----> *delay 15sec.
#actions
start program
#program/script
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
#arguments -> !! you have to adjust the path of the script !!
-noexit -ExecutionPolicy Bypass -WindowStyle hidden -File C:\bastel\audio_controller\AudioController.ps1
#start in
C:\Windows\System32\WindowsPowerShell\v1.0
-----------------------------------------------
ESP PINOUT
Display:
SCL: D1 (GREEN CABLE)
SDA: D2 (ORANGE CABLE)
Rotary:
LFT: D6 (GREEN CABLE)
RGT: D5 (ORANGE CABLE)
Buttons:
MIC: D3 (VIOLET CABLE)
SWC: D7 (YELLOW CABLE)
LED's: D8 (RED CABLE)
Flash Firware on Arduino
flash your Wemos D1 mini with code (available for download in this repo) with Arduino IDE