LED??? (I had to go search for what the heck that meant. For those of you who are as "in the dark" as me - it means Light Emitting Device) So this is an engineering question??? (and you thought we could answer this . . Cindy laughs into hand)
Perhaps the J2ME forum (Micro Edition) would get you a better answer, but I'll leave this here for a while longer. NO Wait!!! Success!!! I found an example at JavaBoutique that has the source code with it!!! http://java.webdeveloper.com/LED/