Sign in to follow this  
ChristianKoehl

Sequence interaction between switches, channels, led's, etc.

Recommended Posts

I'm trying to figure out how to use channels with sequences etc as said in title. 

The first thing im trying to do is simply light up an led on a timer with a button using a sequence. That when the button is pressed, starts the sequence and the sequence lights the led for 5s then shuts back off. I cannot get this to work properly, any help understanding would be appreciated

 

Share this post


Link to post
Share on other sites

Channels look just like variables with some exceptions.  So, if you have a digital output channel called "LED", you could have a sequence like this:

LED = 1
delay(5)
LED = 0

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this