Frequency LED?

I am looking for a way to manipulate the frequency of blinking of the LED on the device using Cascades.

So far, I am able to access the LED and change its color. I can't find any mention about the frequency in the API documentation. Need a pointer on how to do this?

Thank you

Chris

I created a test project, where you can move the slider to set the frequency of led.

'Start' button starts flashing.

DOWNLOAD:

Test.zip

Test.HPP:

namespace bb { namespace device { class Led; }}class QTimer;

class Test : public QObject
{
    Q_OBJECT
public:
    Test(bb::cascades::Application *app);
    virtual ~Test() {}

    Q_INVOKABLE void blink(int frequency);
    Q_INVOKABLE void stopBlinking();

public slots:
    void onTimer();

protected:
    QTimer *timer_;
    bb::device::Led *led_;
};

Test.cpp:

#include 
#include 

using namespace bb::cascades;
using namespace bb::device;

Test::Test(bb::cascades::Application *app)
: QObject(app)
{
    QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);

    qml->setContextProperty("app", this);
    AbstractPane *root = qml->createRootObject();
    app->setScene(root);

    led_ = new Led(LedColor::Green, this);

    timer_ = new QTimer(this);
    QObject::connect(timer_, SIGNAL(timeout()),
            this, SLOT(onTimer()));
}

void Test::blink(int frequency)
{
    timer_->start(frequency);
    led_->flash();
}

void Test::stopBlinking()
{
    led_->cancel();
    timer_->stop();
}

void Test::onTimer()
{
    led_->cancel();
    led_->flash();
}

Test.Pro:

LIBS += -lbbdevice

bar - descriptor.xml:

    access_led_control

hand. QML:

import bb.cascades 1.0

Page {
    property bool stopped: true
    Container {
        Slider {
            id: frequencySlider
            fromValue: 1000
            toValue: 30
            value: 500
            onValueChanged: {
                if (!stopped)
                    app.blink(frequencySlider.value)
            }
        }
        Label {
            text: 'Frequency: ' + Math.floor(frequencySlider.value) + ' msec'
        }
        Button {
            text: "Start"
            onClicked: {
                app.blink(frequencySlider.value)
                stopped = false
            }
        }
        Button {
            text: "Stop"
            onClicked: {
                app.stopBlinking()
                stopped = true
            }
        }
    }
}

Tags: BlackBerry Developers

Similar Questions

  • Satellite Pro 6100: LED flashes at a certain frequency

    Mentioned this problem in another article

    Power adapter gives green LED and charge the battery. So far so good, but...
    After pressing the button ON / OFF, nothing happens. Do not use is not the main adapter but the battery gives no change.
    Only the DC IN - LED flashes at a certain frequency:
    short-long-short-Short-Short-Short-short-long,
    Morse code:.-... -.
    in BIN: 01000001

    Nothing happens... Sytem stays down

    I bought a new battery but no change.

    What can be wrong?

    Manusje

    The blink code is displayed if there is something wrong with the hardware.
    Code: 0100 0001 should read it back 1000 0010 = 82 h

    The Toshiba service partner should know what is the meaning by mistake 82 h
    You should ask him for help.

    Please check this forum announcement:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=12799&MessageID=46635

  • digital output microsecond LED timer

    Hey all,.

    I'm doing a table of 10 LEDs in a row to form an analog timer to use to characterize the delay of the shutter on a digital SLR. We'll first stage shutter lag on the camera using a method different and well set the delay of the shutter for interior<1ms. i="" am="" trying="" to="" use="" labview="" alongside="" a="" ni="" usb="" 6251="" using="" an="" sc-2345="" for="" access="" to="" the="" digital="" outputs.="" im="" using="" a="" timed="" structure="" and="" a="" timed="" loop="" to="" ensure="" the="" timing="" between="" each="" led="" turning="" on="" corresponds="" to="" an="" actual="" time.="" however,="" i="" am="" not="" getting="" the="" results="" i="" thought="" i="" would.="" the="" timing="" does="" not="" seem="" to="" be="" what="" i="" thought="" it="" would="" be="" and="" i="" can="" not="" get="" the="" timed="" loop="" to="" work="" with="" all="" the="" channels="" at="" the="" desired="" frequency="" which="" would="" idealy="" be="" as="" high="" as="" possible.="" could="" someone="" take="" a="" look="" at="" my="" code="" and="" provide="" me="" with="" some="" insight="" where="" i="" may="" be="" getting="" issues?="" i="" apologize="" if="" i="" am="" overlooking="" important="" information="" that="" may="" be="" needed="" to="" help="" solve="">

    ~ Aaron

    I have no DAQmx I can't be sure.  I think that the 6251 has a maximum rate of 1 MHz in order to try to set the rate to 20 MHz should generate an error.  For the purposes of test on the rate 1 Hz bit or less.  Then you should be able to see the LEDs as turning on and off.

    You may also need to set the number of samples to the size of the array.  Referring to the size of the array fed to Scripture DAQmx, not the table on the front panel.  With the number of samples set to 1, I would expect that he wrote that the first element of the array that is equal to zero.  That does not produce a very interesting performance: he lets just all lights off the coast!

    Lynn

  • user led blink

    I trained with the events of the user to leave the course textbook, an example of Core 3. I did not use the blinking.vi like NOR use, instead I assigned a value Boolean true to the flashing for the event property node shot LED I want to blink only once during the event of user after the Fire Event button is pushed. But for some reason, the led does not blink. I tried to apply a value Boolean true and writes the value of the control of the Boolean Fire Event on the front panel when it touches Fire Event is pushed, but neither seems to be impacting on the fired event LED. Can anyone tell my why it doesn't work?

    The vi has been done in version 11.

    Thr problem, it is that you do not understqnd what the property of blink. It causes the Boolean value to Flash at a frequency of 1 Hz. Your property code turns on but then turns off it back 25 ms later. There is never a chance to blink.

    Mike...

  • Frequency counter measurement crashes when you're away point zero (NI USB 6343, error-200284)

    Members of the Forum,

    I have problems with a measure of the frequency on a DAQ Mulitfunction of NI USB 6343 X series.  I use the meter 1 (door axis for frequency signal, PIN to DGND 82 77). The couple HBM T10F flange that I use (powered by a power supply of 24V) emits a signal of frequency between 5000 and 15000Hz with 10000Hz being the zero point. Couple flange has a capacity of 5kN.m (15000Hz = 5kN.m; 5000Hz = - 5kN.m).

    I have been using the VI attached for a few months now without any problems.  Now, the VI works fine as long as the couple remains inside a few hundred Hz of the zero point.  However, when the frequency increases further reading couple begins to freeze and finally I get either of these two errors:-200279 or-200284 related samples is not not available.  I noticed that the light on data acquisition close compromise during these periods of frost.

    Here is an example step by step my problem using cal shunt of the flange of the couple:

    1. I have run the VI and couple bed properly around 10000HZ (Active light, indicator light ON)

    2. I have apply the excitation of 5V to the shunt cal and frequency climbs to about 50% of the ability to couple brackets (as it should)

    3. as soon as I remove the excitement 5V playback freezes and the light on the acquisition of data.

    4 if I apply the 5V once again, until the timeput occurs, the led turns on and the acquisition of data reads the signal correctly.

    This type of problem would be more DAQ-related or is it the flange of the couple itself.

    Thanks in advance,

    Mike

    Solved.

    I did some troubleshooting this morning and it turns out that the vibrations of the system had not tightened a screw that was connector to the stator flange torque causing a bad electric signal of the torque flange itself.

    Everything works fine again.

    -MB

  • x 220 frequency RAM

    I know that the 220 x comes with DDR3 1333 Mhz RAM, so I got a second 4 GB module to add to the computer came with. I made sure the speed and timings were the same.

    However, looking at the memory in detail using hwinfo32, I see that samsung provided with computer memory supports 666,7 533,3, 400.0 and 333.3 frequencies.

    The memory module corsair that I just installed supports 400.0 533,3 and 666,7 alone. There is no support for 333,3.

    Could someonen please tell me more info on what that means and if it will affect me in any way?

    In addition, because I installed the new memory, my computer started hanging a few seconds once from time to time. This produces very rarely, maybe once every few hours, but when it's the computer becomes completely insensitive for 5 to 10 seconds. The hard disk LED flashes, but moving the mouse or typing on the keyboard causes no response - as if the computer is completely frozen. more 5-10 seconds later it again as if nothing happened.

    This only started happening after I installed the new memory - but it was in the same day that I tweaked my card to firx question 50 Hz Intel graphics drivers.

    Could someone tell me with certainty whether drivers intel or the new memory then occasional hanging happens?

    There is no errors in the event viewer that point to this and the built in windows memory diagnostic says my RAM is fine.

    Problem solved by the resettlement of these two memory modules. I initially do not introduce the new at bottom.

    Lack of support for the clock speed lower seems to be only a problem when the other memory is too slow and underclock the memory more quick to match. Since mine, both executed in their highest frequency, it will not be a problem.

    Memtest86 + finds no problems and performance with two sticks are a good bit more fast, with a value of $35.

  • LED display flashes worrisome with a lower brightness

    Dear members,

    I recently bought a laptop, Lenovo G550L with a view model backlit by LED BOEHydis HT156WXB-100 (according to 5.02 by Lavalys Everest). I'm unhappy with the computer itself, but there is one thing that really gives me a hard time. If I adjust the brightness of the backlight to one level other than maximum, it controls the brightness of the LED backlight clearly using Pulse-Width Modulation at very low frequencies according to the desired brightness. If I want to spare or on a dark night, I always turn down or its brightness is blinding kind of my eyes, at the same time these low frequencies with PWM causes my eyes to strain and sometimes I feel moderate headaches on the side. I am looking for a solution change the method of my LED blacklight or increase the PWM frequency.

    I tried to address BOEHydis (now Hydis) with the problem by e-mail. BOE quoted me a representative Hydis, who wrote me that BOEHydis coexist more. With his help I was able to find the new website of the BOE and found this product on it. I them send a letter too, but haven't gotten a response yet.

    The screen itself appears in Windows (XP, SP3) device as a standard Plug-and-Play monitorManager. My question is who is at - it software (or the same material) solution or a Advanced other driver for this type of screen that I can increase the PWM frequency or alter somehow brightness adjustment method?

    Thanks in advance,

    str4ngS

    Contact lenovo hotline and ask for the replacement of the lcd screen.

    (I know that some lcd displays may have a similar problem you have)

  • Does the HP 2311gt 23 "3D LED monitor support 120 Hz refresh rate?

    I just want to know if the HP 23 inch diagonal screen 3D LED 2311gt supports 120hx refresh rate.

    I couldn't find anything in the specifications of the product, so I asked here.

    The data sheet says nothing at 120 Hz, but 3D monitors usually support 120 Hz, or so I heard.

    The HP website . PDF lists all modes at 70 Hz or less. The specifications HP product information page lists all modes at 70 Hz or less and a vertical frequency of 50 to 76 Hz. The specifications, product HP product information page lists as having a vertical sweep of 50-76 Hz scan frequency range. I'll tell you that it does not support a refresh rate of 120 Hz... and that its max refreash rate is 76Hz... and most display modes use a 60 Hz refresh.

    Frank

  • White screen on Boot and CAPS lock and NUM lock LED blinking on HP Pavilion dv - 6 portable 1210sa

    Hello

    I'm on HP Pavilion dv6 - 1210sa laptop with Windows vista Home Premium (service Pack2). It's the operating system, which is that the laptop came with when I bought in 2010 and later service pack 2 was installed using windows update. I can confirm that my laptop is up-to-date with updates of windows and hp installed periodically. My problem is the following:

    Everytime I turn on my laptop, I can hear the noise from the cooling fan and the led power and feather touch volume buttons and a wi - fi light up. However, the screen remains blank and the CAPS lock and NUM lock Dungeon LED flashing with three second gap between two flashes. They Flash together and blink only once in a single cycle. It keeps flashing even after leaving it for 10 minutes. I have to perform the hard reset several times before I can get it started. This problem started a few months ago with the frequency of the problem more and more. It has now reached a point where I encounter this problem on every start and even after the awakening of the laptop computer from standby or hibernation.

    I know that the flashing of the LEDs is typical diagnoses, but I was unable to understand the real problem. I know the screen works because I tested using an external monitor to work. It should not be the battery (even if it's crap to maintain charge) I tried to restart the laptop with just AC adapter connected (and battery removed) after having done a hard reset and still, the situation did not improve.

    Could someone please tell me what is the problem and what are my options? Think you that formatting my c: / and re - install the OS will solve the problem?

    Thank you.

    Please come back to me

    As long as you keep your files backed up on the outside, it is to you how you want to proceed. First question, however, is you are in warranty or not? If you are in warranty, Yes, call telephone support and will take care to have it sent repair.

    If you are no longer in warranty, however, that the repair can be expensive. You could certainly call for an exact quote, but according to the availability of the room, it might be around $200 and for an out of warranty repair. Money would probably be much more effective if they are presented to a new computer.

    HP Total Care 1-800-474-6836

    BUT, if you're still able to get the it to power (after trying it several times) and you're OK with the disadvantage, it would be nice to hold off on buying a new computer until it failed completely. I hate this word like that but I want to be realistic with you. I'm sorry that you are having this problem. As I said though, your files are the priority. Keep all your documents and photos and other precious files saved on an external hard drive or flash drive. Let me know if you have any other questions

  • Notification LED Smartphones blackBerry for missed calls BB bold 9700

    is there a way to make the led flash light when I have a missed call? and

    Key your green dial to enter your call log > Menu key > Options > Call Logging.

    Now, check missed calls and save.

    Your missed calls will appear in your Messages folder and take on the notification that you have defined

    DO NOT WORK to MAKE THE led lights. It's an icon of msg appear but no light!

    It does not seem to turn on missed calls, just tried it on BB my wife.

    Personally, I use app BeBuzz (not free) of the Blackberry app world. It is very good because you can activate different signals led colorful for different people, missed calls, emails etc.

    You can also change the frequency of the flashes. I noticed on the standard flash sometimes, I look at the phone and I turned away before flashing. So now I have it set on every 2 seconds so I can't miss it.

    The missed call led alert, I put in what they call 'disco' which flashes all colors in quick succession. Can't miss it - but don't forget to put your phone in night mode when you sleep, otherwise you end up with a flashing room in the middle of the night which is not very pleasant.

  • 13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. unplugged

    13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. disconnected the battery and security cordon mag, maintained hold button / stop for 5 seconds, nothing. Another SMC reset and it is the only way Mac powered on that she has no back light for the keyboard and the fan works on high all the time, please can someone HELP, thanks.

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • After turning on my wireless keyboard led green lights, then begins to blink, and then turns off. The batteries are fresh.

    After turning on my wireless keyboard led green lights, then begins to blink, and then turns off. The batteries are fresh.

    Possible explanation.  It is likely that batteries, so fresh, can be irregular in size.   The uncertain connection would therefore tend to lead to a failure to blink and you declare.   Read my thing...

    Batteries.

  • Firmware update failed, TC is now unavailable and no led light

    Found my TC this morning flashing yellow, found a FW update was available, clicked on update, downloaded FW but then he could not update and now TC is unavailable, I tried to reboot, but still no TC, before LED is off even on/after power on.

    How to treat?

    How to treat?

    Time Capsule 802.11n (4th Gen)

    The symptoms are typical of a Gen 4 TC... so thanks for putting this info in your profile.

    The new firmware is not the problem... However, the drop of water that makes the vase overflow. Your TC underwent a total failure due to bad soldering... the attempt of the update was this slight element of stress which caused the catastrophic failure.

    If you are a handyman, there is a fix... It of free... and set up to present enough to say that I am fairly confident with your symptoms, it will fix it.

    s/Apple-time-capsule-repair/GEN4-a1409-issues https://sites.google.com/site/lapastenague/a-deconstruction-of-routers-and-modem

  • Mac Pro Tower 2012 Unresponsive (Power Light On, red LED turn on)

    Found my Mac Pro 2012 Tower responds more today with the power led and a red led light on the inside of the tower.  The subject of research and could not find anyone who had this exact question (unless I'm missing something) and I also have trouble understanding what LED light and how do I proceed.  Any advice would be greatly appreciated

    Remove all external and off devices, disconnect all external cables

    Check your GPU for dust/dirt/creep (where it "fits" of the socket), you can remove it but when undertaking this make sure that you are properly grounded at all times and the components are put in static free containers, then clean the inside of the computer with compressed air ensuring that you damage the connectors not blowing the white point.

    Replace the GPU and follow the instructions to reset the SMC.

    Reset the management system (SCM) controller on your Mac - Apple Support

    See the yellow highlight

    Plug directly into a wall outlet connected to the ground not a power strip or battery backup.

    otherwise, to replace the CMOS battery on the logic board, after that leave the device unplugged for 30 minutes or more.

  • Can I conduct an Apple LED Cinema Display Monitor with a Dell laptop?

    I have an Apple LED Cinema Display Monitor. My work gave me a Dell laptop to do the work of CAD. I would drive with her display. Are there drivers / adapters to get the job done?

    You need a DisplayPort on the Dell. See also monitor LED Cinema Display (27-inch) - technical specifications .

    What is the version of Windows on Dell computer?

Maybe you are looking for

  • Black screen on Equium P200D blocking

    I bought an Equium P200D about two weeks ago and it keep "black screening" on me. Without warning, it would be empty screen, no mouse, the keyboard is unresponsive, caps lock, shift etc. is more changed their lights. Click briefly on the power switch

  • NB550D boots in black of the screen and cannot turn off even

    I had my NB550D for only less than a month. I've updated the memory to 2 GB and the Op to Home Premium system, but nothing else. It's on auto update on security issues, and I remained with the McAfee protection which was pre-installed (and paid for a

  • Hidden pics still show in film

    When I hide the pictures in my camera roll, they appear in the 'Hidden' folder, but they still appear in the film. Is not the purpose of this feature to not to show the photos in the camera roll? As much as I can say that I use this feature correctly

  • Unable to load SP1for Vista Home premium

    Well I worked on this all weekend. I didn't am offer SP1 or 2 when I type updates verification. I went to download and has been a success, but there was an internal error LinkId = 101139. It seems that they say I have to get this popular update ffrom

  • Receive phone calls when the phone is locked with PIN

    I appreciate the ability to lock my Palm Pre with a PIN, but unlike my Blackberry, it seems that I have to enter my PIN code in order to ANSWER a call.  At the point where I usually do, I have lost the appellant and need to remind them.  Please consi