.. _cpp-tutos-leds:

Control the LEDs
================

:ref:`\<\< return to C++ examples<cpp-examples>`

The aim of this example is to show how to control NAO's LEDs using a proxy to ALLeds module. This example will make a colored animation on all of NAO's LEDs.

The whole example is available here: :download:`leds.zip <../leds.zip>`

Source file:
------------

:download:`ledsexample.cpp <ledsexample.cpp>`

.. literalinclude:: ledsexample.cpp
   :language: cpp

CMakeLists.txt:
---------------

The corresponding CMakeLists.txt file is the following:

:download:`CMakeLists.txt <CMakeLists.txt>`

.. literalinclude:: CMakeLists.txt
   :language: cmake
