BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Button with 3 states?


#1

Hej

I want to create a button with 3 states “Off” - “On” - “Auto”

As a normal button only have two states then this probably need to be a workaround.

Any ideas?

/Jan


#2

Hey. Checkout widget “segmented control” (on Android). For iOS it is under Apple review right now.


#3

Hej Dmitriy

Thanks!

/Jan


#4

You can use a normal button too, changing the properties on the fly accordly your needs…


#5

you can create one button with on/off and had longpress to enter automode, so it 'll be 3 states
you can also create a 4th state with a double tap
:wink:


#6

Check below Project from @Gunner, you will see that a simple button can do lot of things, not only on/off… with part of his code and labels you will be able to achieve what you want.