Led brightness ~= Led current When driving a normal led with resistor with PWM you have Brightness ~= Iled ~= Ton/(Ton+Toff) * (Vcc - Vled) / Rlimit The relation is not exact because Vled changes with the current. Peter -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads