Page 15 of 28
© Cambridge Silicon Radio Limited 2014
CS-310152-UGP1
www.csr.com
BlueC
or
e
A
D
K
3
.0
Subw
oo
fer
U
s
er
G
uide
Rules for defining an LED pattern:
Each pattern must have a multiplier, a number of LED_A, LED_B and LED_C points followed by a
number curve points (the number of curve points depends on the value set by NUM_POINTS for the
pattern), with the exception being for a blank LED pattern (No LEDs to be turned on)
Each pattern must have at least two curve points defined for any LED that is required by the pattern
The intensity range is from
0x0
through to
0xff
, where
0xff
is full brightness and
0x0
is fully off
4.4.1. Example LED Pattern
LED patterns are simply plots of points for each LED that is required for that pattern. The number of points for each
pattern is undefined but must be at least two for any LED that is used by the pattern.
To create an empty pattern, set TIME_MULTIPLIER, NUM_POINTS_A, NUM_POINTS_B and NUM_POINTS_C to
zero. No curve points must be defined for the pattern.
To create an example pattern where the red LED is flashed, followed by the Blue LED flashed, two plots are
required; one plot for the red LED to follow and one plot for the blue LED to follow.
Figure 4.1 shows an example LED plot for a pattern using two LEDs.
Figure 4.1: Example LED Plot for a Pattern Using Two LEDs
Table 4.6 and Table 4.7 list the values of the plot points required for this example LED pattern:
Plot Point
Time (ms)
Intensity (0x0 <> 0xff)
P1
0
0xff
P2
500
0xff
P3
500
0x0
P4
2000
0x0
Table 4.6: Plot Point Values for the Red LED of the Example Pattern