I want to control the LED on an Android device with more control than is offered by the Notification class. Notifications allow you to change the rate of flashing; e.g. 300
You should be able to do this with a notification. You can raise and cancel the led using the notification manager and you could use the alarm manager part of android to control the arbitary times.
I haven't tried this in code, but the SDK shows this:
And then you could use NotificationManager.cancel() to arbitrarily turn the notification off.
http://developer.android.com/reference/android/app/Notification.html#FLAG_SHOW_LIGHTS