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?
REVERSE blinking lights
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88037
- Joined: Sat Feb 07, 2009 10:11 am
Re: REVERSE blinking lights
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
-
- Posts: 2
- Joined: Sat Jan 18, 2014 12:27 pm
Re: REVERSE blinking lights
Is there a tutorial without a botton switch?
- Franklin97355
- Posts: 23902
- Joined: Mon Apr 21, 2008 2:33 pm
Re: REVERSE blinking lights
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.
Code: Select all
Please be positive and constructive with your questions and comments.