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 11:14 PM
Turn LED off? HELP??!! stripperdave General Legacy Device Discussion 2 11-25-2005 10:47 PM

Vespa Stator Coil Charging Coil Zündspule für Lichtmaschine 12V Electronic
$7.4
Vespa Stator Coil  Charging Coil  Zündspule für Lichtmaschine 12V Electronic  picture VESPA CHARGING COIL
$12.0
 VESPA CHARGING COIL pictureHoneywell TRADELINE R8212G 1217 Contactor Less coil 3 Pole 30 Amps NEW
$11.99
Honeywell TRADELINE R8212G 1217 Contactor Less coil 3 Pole 30 Amps NEW picture1266C28G09 CUTLER-HAMMER REPLACEMENT COIL FOR DPCK
$385.59
1266C28G09 CUTLER-HAMMER REPLACEMENT COIL FOR DPCK pictureNu-Calgon 4171-75 Evap Foam No Rinse Evaporator Coil Cleaner, 18 oz.
$15.98
Nu-Calgon 4171-75 Evap Foam No Rinse Evaporator Coil Cleaner, 18 oz. picture






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