ESP8266 is a really cheap (<£5) microcontroller with built in WiFi. I
loaded up a D1 Mini with 'ESPEasy'
(https://www.letscontrolit.com/wiki/index.php/ESPEasy) and added a
Rotary Encoder to make a Volume control.
31965
Code:
--------------------
on System#Boot do
TimerSet_ms,1,1
Pulse,2,0,10
endon
on Rules#Timer=1 do
Let,1,[Rotary#Count]
if [Var#1]!=[Var#2]
if [Var#1]>[Var#2]
let,3,([Var#1]-[Var#2])*6
sendtoHTTP,192.168.1.100,9000,/?player=Computer&p0=mixer&p1=volume&p2=%2b[Var#3]
else
let,3,([Var#2]-[Var#1])*6
sendtoHTTP,192.168.1.100,9000,/?player=Computer&p0=mixer&p1=volume&p2=%2d[Var#3]
endif
Let,2,[Var#1]
Pulse,2,0,10
TimerSet,2,10
endif
TimerSet_ms,1,100
endon
on Rules#Timer=2 do
Pulse,2,0,30
DeepSleep,0
endon
--------------------
31966
I can provide more details if anyone is interested.
Tony
+-------------------------------------------------------------------+
|Filename: Screen Shot 2020-10-26 at 18.12.36.png |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31966|
+-------------------------------------------------------------------+
------------------------------------------------------------------------
Wiredcharlie's Profile: http://forums.slimdevices.com/member.php?userid=35115
View this thread: http://forums.slimdevices.com/showthread.php?t=113125
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy