Toggle led without using button mode toggle | Intech Studio
💬 general GridRequest

Toggle led without using button mode toggle

Emilio
Emilio · · 6 replies

Hallo guys,
I have a question regarding the buttons. Basically, I would like to make a button that behaves like a toggle but I don't want to use the button mode: toggle.
I want this mostly to handle the led behaviour. I would like to have the led that stays on when I click the first time and then off when I click again.
I understand that I could do this with the code block, but to do so I'd need to store the value of the state of the button.
Is there a way to do so?

thank you in advance

Replies (6)

Greg-Orca Greg-Orca ·

Hi, we have a button profile in profile cloud, 'Momentary Button - Toggle LED' please check it and let me know if it's works

Emilio Emilio ·

hi sorry I had problems with the app

Emilio Emilio ·

it's what I wanted, amazing! thanks

Emilio Emilio ·

since I'm here, I'll go for another question. Why my code block character counter starts already from 320 characters?

kkerti kkerti ·

The character count takes into consideration the content of all action blocks under an event.

Emilio Emilio ·

I see, thanks for the answer Kristof

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →