BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-12-2011, 05:46 PM   #1 (permalink)
New Member
 
Join Date: May 2011
Model: 9700
PIN: N/A
Carrier: ATT
Posts: 2
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Turn the LED on programmaticaly

Please Login to Remove!

Hi, my understanding to melodramatically turn the LED on, all I have to do is;

LED.setState( LED.STATE_BLINKING );

yet nothing happens when I do. I have also tried;

if(LED.isSupported(LED.LED_TYPE_STATUS)) {
LED.setState( LED.LED_TYPE_STATUS, LED.STATE_BLINKING );
}

again, nothing (it does execute inside the if statement). I have tried it on the 6.0 simulator and actual torch device.

Any advice?
Offline  
Old 05-12-2011, 07:18 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: Turn the LED on programmaticaly

You have to set the on and off times first.

Like this:

LED.setConfiguration(ON_TIME,OFF_TIME, LED.BRIGHTNESS_50);
LED.setState(LED.STATE_BLINKING);

(don't use this literally, these values are defined in my code, so you'll have to figure out what on/off times you want).
Offline  
The Following User Says Thank You to Dougsg38p For This Useful Post:
harkdh (05-13-2011)
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Turn the LED on programmaticaly
Thread Thread Starter Forum Replies Last Post
Brand new 8800 won't turn on - red LED and black screen robopie General Legacy Device Discussion 8 10-02-2007 05:44 AM
telenav final announce before turn - 8830 vzw daves GPS & Mapping 1 09-23-2007 09:07 PM
8703e guide and all other series of bb techman1 BlackBerry Guides 1 09-21-2006 09:12 PM
Turn Led Off??? Help stripperdave General Legacy Device Discussion 2 11-25-2005 10:14 PM
Turn LED off? HELP??!! stripperdave General Legacy Device Discussion 2 11-25-2005 09:47 PM





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.