REVERSE blinking lights

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
clodd
 
Posts: 2
Joined: Sat Jan 18, 2014 12:27 pm

REVERSE blinking lights

Post by clodd »

Hi! I'm just beginning Arduino so I need a little help! I managed to do the blinking sequence, and I'm trying to do the REVERSE blinking, so you have 4 leds and they go out in order and back on a little like this: (. = off and x = on)
.xxx
x.xx
xx.x
xxx.
and back again.
I understand it would be a loop and I would use "for" but I'm not sure what would come after, maybe:
for (int led1= LOW; ? ;?)

I can't find an example anywhere does anyone know?

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: REVERSE blinking lights

Post by adafruit_support_bill »

There are a lot of ways to approach it. One of Lady Ada's early tutorials walks you through the design of a bicycle tail-light (scroll down toward the bottom of the page) http://www.ladyada.net/learn/arduino/lesson5.html

clodd
 
Posts: 2
Joined: Sat Jan 18, 2014 12:27 pm

Re: REVERSE blinking lights

Post by clodd »

Is there a tutorial without a botton switch?

User avatar
Franklin97355
 
Posts: 23902
Joined: Mon Apr 21, 2008 2:33 pm

Re: REVERSE blinking lights

Post by Franklin97355 »

Not everything you want to do will have a tutorial. Part of using micros is learning how to control them and modify existing code to form it into something you want to use. Show us your code (paste it between tags) and perhaps we can give you some clues.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”