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.

20 lines
982B

  1. /**
  2. @page example_bitmap_led_program The %BitmapLEDProgram class
  3. @section littlefoot_example A LittleFoot example
  4. The %BitmapLEDProgram class is a simple example of a LittleFoot program.
  5. @s_file{%juce_blocks_basics/visualisers/juce_BitmapLEDProgram.h}
  6. @include juce_blocks_basics/visualisers/juce_BitmapLEDProgram.h
  7. @s_file{juce_blocks_basics/visualisers/juce_BitmapLEDProgram.cpp}
  8. @include juce_blocks_basics/visualisers/juce_BitmapLEDProgram.cpp
  9. The repaint() method of the LittleFoot program is called at approximately 25 Hz, and each time it simply inspects the heap (the shared area of memory used to communicate between your application code and your LittleFoot program) and sets the LEDs based on the heap's content.
  10. To update the heap, and hence the LEDs, your application code calls BitmapLEDProgram::setLED().
  11. A more advanced example can be found in the source code of the DrumPadGridProgram class or in the @ref example_blocks_synth example.
  12. */