help. led on of using push button

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Saif12
Posts: 3
Joined: Wed Oct 14, 2020 10:03 pm
Contact:

help. led on of using push button

Post by Saif12 »

i have a question how to use a push button to turn on led until and when i push it again to turn it off i have been trying for 2 days but i did not get any result using i am using flowcode 8 i hope you will understand my english is not good,

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: help. led on of using push button

Post by medelec35 »

Hi Saif12,
Welcome to the forums.
Attached is how I would do it.
There are other ways e.g. using count = count +1.
Attachments
Toggle Switch.fcfx
(9.13 KiB) Downloaded 150 times
Martin

Saif12
Posts: 3
Joined: Wed Oct 14, 2020 10:03 pm
Contact:

Re: help. led on of using push button

Post by Saif12 »

Hello medelec35
Yes Thats what i want to do thank you so much you made it very easy to understand

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: help. led on of using push button

Post by medelec35 »

Your're welcome,
glad I could help.
Martin

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: help. led on of using push button

Post by jgu1 »

Perfect Martin :D :wink:

Jorgen

Post Reply