-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimuGyrophare.h
40 lines (37 loc) · 882 Bytes
/
SimuGyrophare.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Lumieres::SimuGyrophare.h
// Exemple pour le forum 3rails / Julie Dumortier / Licence GPL
//
// Ce fichier concerne la suite des allumages et extinctions qu'il
// faut envoyer à une led pour simuler un gyrophare, un flash ou
// un clignotant
const blink blinkGyrophare[] = {
125, LIGHT_FAD8,
100, LIGHT_FAD4,
125, LIGHT_FAD2,
150, LIGHT_ON,
125, LIGHT_FAD2,
100, LIGHT_FAD4,
125, LIGHT_FAD8,
150, LIGHT_OFF
};
const blink blinkFlash[] = {
10, LIGHT_FAD8,
10, LIGHT_OFF,
10, LIGHT_FAD8,
10, LIGHT_OFF,
10, LIGHT_FAD8,
10, LIGHT_OFF,
30 , LIGHT_FLASH,
10, LIGHT_OFF,
};
const blink blinkClignotant[] = {
100, LIGHT_OFF,
30, LIGHT_FAD8,
40, LIGHT_FAD4,
30, LIGHT_FAD2,
200, LIGHT_ON,
30, LIGHT_FAD2,
40, LIGHT_FAD4,
30, LIGHT_FAD8,
100, LIGHT_OFF,
};