Page 1 of 1

set GPIO state other than 0 or 1

Posted: 14 Jun 2018, 11:05
by TungstenE2
I can set GPIO state by command to other values than 0 or 1.

Even this state is not shown in the list of devices (it stays 1) the status is stored.

Does this have any negative side effects?

Would like to use this for state controlling and request state by URL.
gpio2.jpg
gpio2.jpg (21.93 KiB) Viewed 1875 times
gpio2.jpg
gpio2.jpg (21.93 KiB) Viewed 1876 times

thx

Re: set GPIO state other than 0 or 1

Posted: 16 Jun 2018, 18:43
by fraeggle
Normally a GPIO has two states, 0 and 1. Anything else don't make any sense and will not work. Only in PWM-Mode you have a value from 0 to 1023, that is why only 0 and 1 is shown within GPIO-State.
I don't really understand "Would like to use this for state controlling and request state by URL."
What exactly do you want to control? Why Dummy Device with GPIO? Do you use IOBroker,MQTT...?

Peter