If your East-West lights a green, then your North-South lights are Red. Another advantage of this approach is that you can turn on multiple outputs in a certain state. You can also use the current states of your light to change a crosswalk light based on conditions, such as the button has been pressed. The number in N7:1 can be changed or kept based on your sensors values and your timers for how long the light should be on and off. Now, you can use logic to set what the number in N7:1 will be based on things that happen. Yellow only works when the number in N7:1 is 2. Now, green only turns on when that value of N7:1 is the number 1. Then give each light color a number, such as: Select an address (such as N7:1) and use this address as a sequence value. What I suggest is trying to rewrite the program in a new file, but do this: AKA does not respond to any outside events. This is fine if you want a light that cycles and does nothing else. In order for any of the lights to turn on, you have to be in its assigned range. You have a timer that is timing up to 26 seconds. I don't have a lot of time at the moment, but think about this for a minute.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |