Combining led blink and fade (PWM)

klansie:
Sorry, I'm just searching for so many information and unable to put them together correctly :frowning:

My requirement is, I got 13 led, and I got a rundown for them to fade in and out,

which will be like this :

  • All led fade in
  • Stay brightest for 5 seconds
  • All led fade out
  • Stay all dark for 1 second
  • Led7 fades in
  • Stay brightest for 5 seconds
  • Led7 fades out
  • Stay all dark for 1 second
  • Led6&8 fade in
  • Stay brightest for 5 seconds
  • Led6&8 fade out
  • Stay all dark for 1 second
  • Led1 fades in
  • Stay
  • Led2 fades in
  • Stay
  • Led3 fades in
    .
    .
    .
    .
    .
    .....led13 fades in (now would be all led at brightest)
  • Led 13 fades out
  • Led 12 fades out
    .
    .
    .
    .
    .....Led1 fades out (now would be all dark)
  • Stay all dark for 1 second
  • Led6&8fade in
  • Stay brightest for 5 seconds
  • Fades out
  • Led1 fades in
  • Led1 fades out
  • Led2 fades in
  • Led2 fades out
    .
    .
    .
    .
    .
  • Led13 fades in
  • Led13fades out

-end-

( sorry English is not my mother language ) :frowning:

OK. I am glad that I asked for a full explanation because that is very different from your original description.

When the LEDs fade in and out should all of the fades take the same time ?

As a matter of interest what is this project being used for ?