AskSin++
Led.cpp
1 //- -----------------------------------------------------------------------------------------------------------------------
2 // AskSin++
3 // 2016-10-31 papa Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/
4 //- -----------------------------------------------------------------------------------------------------------------------
5 
6 
7 #include <Pins.h>
8 #include <AlarmClock.h>
9 #include <Led.h>
10 
11 namespace as {
12 
13 const LedStates::BlinkPattern LedStates::single [9] PROGMEM = {
14  {0, 0, {0 , 0 } }, // 0; define nothing
15  {2, 20, {5, 5,} }, // 1; define pairing string
16  {2, 1, {10, 1,} }, // 2; define send indicator
17  {0, 0, {0, 0,} }, // 3; define ack indicator
18  {0, 0, {0, 0,} }, // 4; define no ack indicator
19  {6, 3, {5, 1, 1, 1, 1, 10} }, // 5; define battery low indicator
20  {6, 1, {1, 1, 5, 1, 5, 10} }, // 6; define welcome indicator
21  {2, 6, {2, 2, } }, // 7; key long indicator
22  {5, 1, {8, 4, 4, 4, 4} }, // 8; failure
23 };
24 
25 const LedStates::BlinkPattern LedStates::dual1 [9] PROGMEM = {
26  {0, 0, {0 , 0 } }, // 0; define nothing
27  {2, 20, {5, 5,} }, // 1; define pairing string
28  {2, 1, {20, 1,} }, // 2; define send indicator
29  {2, 1, {4, 0,} }, // 3; define ack indicator
30  {0, 0, {0, 0,} }, // 4; define no ack indicator
31  {6, 3, {5, 1, 1, 1, 1, 10} }, // 5; define battery low indicator
32  {6, 1, {1, 1, 5, 1, 5, 10} }, // 6; define welcome indicator
33  {2, 6, {2, 2, } }, // 7; key long indicator
34  {5, 1, {8, 4, 4, 4, 4} }, // 8; failure
35 };
36 const LedStates::BlinkPattern LedStates::dual2 [9] PROGMEM = {
37  {0, 0, {0 , 0 } }, // 0; define nothing
38  {2, 20, {5, 5,} }, // 1; define pairing string
39  {2, 1, {20, 1,} }, // 2; define send indicator
40  {0, 0, {0, 0,} }, // 3; define ack indicator
41  {2, 1, {4, 0,} }, // 4; define no ack indicator
42  {6, 3, {5, 1, 1, 1, 1, 10} }, // 5; define battery low indicator
43  {6, 1, {7, 0, 0, 6, 0, 10} }, // 6; define welcome indicator
44  {2, 6, {2, 2, } }, // 7; key long indicator
45  {5, 1, {8, 4, 4, 4, 4} }, // 8; failure
46 };
47 
48 }