Menu

led

Majenko Technologies
:::C++
WavePro.led(mode);
WavePro.led(mode,sensitivity);

The on-board LED display can be configured to respond in a number of different ways. The mode parameter selects this mode, and an optional sensitivity value can be provided. Currently only the spectrum analyser mode uses the sensitivity value. sesnitivity is between 0 and 255.

mode is one of:

  • LED_NORMAL

Green LED = disk activity, yellow = recording, yellow = SPI activity, and red is not assigned yet.

  • LED_VU

Simple 4-bit VU meter of the playing sound.

  • LED_SPECTRUM

This is the clever one. A spectrum analyser display (4 bit of course) of the playing audio. This uses the dsPIC's DSP to do a full FFT of the current block of audio being loaded into the DMA buffers on the fly, and lights the LEDs depending on various threshold levels.


Part of: [Arduino Library]


Related

Wiki: Arduino Library

MongoDB Logo MongoDB