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

Reply
Contributor
liuksmith
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

Please use plain text.
Developer
greenback
Posts: 514
Registered: ‎10-17-2010
My Device: BlackBerry Z10, DAC

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! :Rockon:

Please use plain text.
Contributor
liuksmith
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

Please use plain text.
Contributor
ejup2009
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
Please use plain text.
Contributor
liuksmith
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"

 

Please use plain text.
BlackBerry Development Advisor (Retired)
amarcon
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,

 

Please use plain text.
Contributor
liuksmith
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

 

Please use plain text.