2 LEDs fading in and out at the same time?


i have general question in order code correctly

given following case:
-      there 2 leds driven separately
-      the leds "fade in" 0,5sec , "fade out" 2 sec
-      each lamp activated pushbutton

theoretically following usage happen:
-      led 1 activated
-      led 1 deactivated
-      while led1 "fade out" occurs, lamp 2 activated

i know how code fade out/ fade in feature. how connect in way fade in , fade out happens @ same time?  [smiley=huh.gif]

there couple of pins can pwm driven. can control them separately , in way achieving independent dimming of both leds.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > 2 LEDs fading in and out at the same time?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums