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,

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9089
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
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 9 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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9089
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: help. led on of using push button

Post by medelec35 »

Your're welcome,
glad I could help.
Martin

jgu1
Posts: 1230
Joined: Tue Oct 06, 2009 9:39 am
Contact:

Re: help. led on of using push button

Post by jgu1 »

Perfect Martin :D :wink:

Jorgen

Post Reply