On Sat, 14 Sep 2002, Peter L. Peres wrote: > On Sat, 14 Sep 2002, Magnus von Rosen wrote: > > >The state-machine approach seems like a good alternative > > Ah, now you say that. You can move the larger part of the state machine > into a timer ISR (and drop the delay() part). Funny you should mention that: http://www.botkin.org/dale/led_pwm_control.htm I have used this exact approach on a project I did that involved 160 or so LEDs. I used row & column addressing to turn LEDs on or off, and a software PWM to control the brightness of the whole array. Oh, did I mention I did it in C? 8-) Dale -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads