The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
749B

  1. /**
  2. @page controlling_led_strips Controlling LED strips
  3. Control Blocks have a strip of LEDs which can be controlled via an LEDRow object.
  4. A pointer to an %LEDRow object can be obtained from the Block::getLEDRow method of a Block---see the @ref discovering_blocks section for details of how to obtain a %Block object.
  5. Once you have an %LEDRow there are a few functions that you can use to interact with the strip of LEDs on a device.
  6. A code snippet showing how to turn the whole strip of LEDs on a %Block orange is shown below.
  7. @code{.cpp}
  8. void setWholeLEDRowOrange (Block& block)
  9. {
  10. if (auto ledRow = block->getLEDRow())
  11. for (int i = 0; i < ledRow.getNumLEDs(); ++i)
  12. ledRow.setLEDColour (i, Colours::orange);
  13. }
  14. @endcode
  15. */