look at this
http://melabs.com/resources/articles/ledart.htm

and this
http://www.picbasic.co.uk/forum/showthread.php?t=1044

EDIT: Seems bruce hit the button at the same time