Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy
Accepted Solution

LED Example

Hi all,

I'm trying to use Led Example (https://github.com/blackberry/Cascades-Samples/tree/master/led)

but it looks like that BB10 supports only blue and red led color.

Somebody knows something about this issue?

 

regards

Luca

Developer
Posts: 614
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: LED Example

Luca,

 

I made a video tutorial and two blog posts on how to get the LED indicator working. The code is free to use. I think watching the video will be helpful. This was made before the R6 release, but the code should still work.

 

 

Video

 

Blog Posts w/code and explanation

http://cascadescode.tumblr.com/search/led


Good luck! 

Contributor
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy

Re: LED Example

Hi GreenBack,

I had  already seen your example before to write my post.

I reach to use your example and Led Example from github but only colors that work are blue and red and perhaps Cyan but I'm not sure (it looks like blue)

 

I'm using R6 SDK

Contributor
Posts: 20
Registered: ‎05-18-2010
My Device: BOLD 9900
My Carrier: vodafone

Re: LED Example

Hello i am trying to configurate "The led" in my app, I saw your example and video but i am presenting a issue "'theLed' was not declared in this scope" .

 

I am reading The Guide but i am confused dont know wher i have to declare

 

Can you hel me ?

 

Thanks 

Enviado de mi BlackBerry Bold 9900

Ejup2009_Dev
Contributor
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy

Re: LED Example

you should use "using namespace bb::device"

 

Retired
Posts: 155
Registered: ‎07-16-2012
My Device: Dev Alpha
My Carrier: Bell

Re: LED Example

Hi liuksmith,

 

did you update your device to R9 already? If so, please take a look at the sample app again, it seems to be working perfectly now.

 

https://github.com/blackberry/Cascades-Samples/tree/master/led

 

Cheers,

 

Contributor
Posts: 41
Registered: ‎09-13-2011
My Device: BlackBerry Z10 Limited Edition
My Carrier: TIM - Italy

Re: LED Example

Hi amarcon,

thank you for reply,

I 've updated everything to R9 (IDE and device) and now it works.

 

regards

Liuksmith