Skip to content

Instantly share code, notes, and snippets.

@40
Created June 28, 2012 18:10
Show Gist options
  • Select an option

  • Save 40/3012988 to your computer and use it in GitHub Desktop.

Select an option

Save 40/3012988 to your computer and use it in GitHub Desktop.
Activating BlackBerry 10 LED Light(Cascades)
// app.cpp
// include these in your header
#include <bb/device/Led>
#include <bb/device/LedColor>
#include <bb/device/Light>
// add this namespace
using namespace bb::device;
// Inside your application class (app.cpp)
Led *theled = new Led();
theled->setColor(bb::device::LedColor::Red);
theled->flash(20);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment