Esp-12 i.c.m Rotary encoder
Posted: Sunday 30 April 2017 13:47
I have made an dimmer with a slider in Domoticz, this works great.
But now I want connect an Rotary encoder to the esp in the place of a wallswitch.
Technical no problem , only the software I don't know.
Can anyone tel me how I can make A Rotary encoder to an esp-12 en read out?
How can I set this in "rules" en sent to Domoticz and so that the slider moves to.
I Have ever an Rotary program with picbasic , see below.
For teller is the dim value.
But now I want connect an Rotary encoder to the esp in the place of a wallswitch.
Technical no problem , only the software I don't know.
Can anyone tel me how I can make A Rotary encoder to an esp-12 en read out?
How can I set this in "rules" en sent to Domoticz and so that the slider moves to.
I Have ever an Rotary program with picbasic , see below.
Code: Select all
If PORTB.0 = 1 Then
If PORTB.1 = 1 Then
Dec teller
Else
Inc teller
EndIf

