We on Covedesign have developed a program that can controll the different lights on your HTC Hero (Trackball, Buttons etc.) and have released it as open source. You can find it on market "Covedesign Dev". It require root access.
Does not work on CDMA Hero.
Open Source: http://covedesign.se/c/click.php?id=6