Catatan Kang iBNuX Write The Code… Change The World…

22May/100

Using LED

import:

import net.rim.device.api.system.LED;
import net.rim.device.api.ui.Color;

code to start LED:

LED.setColorConfiguration(200, 2000, Color.GREEN);
LED.setState(LED.STATE_BLINKING);

200 adalah berapa lama Led menyala
2000 berapa lama led mati

code to stop LED:

LED.setState( LED.STATE_OFF );
Tagged as: Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.

Plugin from the creators of Brindes Personalizados :: More at Plulz Wordpress Plugins