-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.axi~
79 lines (70 loc) · 2.87 KB
/
variables.axi~
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
PROGRAM_NAME='variables'
DEFINE_CONSTANT (* System Constants *)
VOLATILE INTEGER BUTTON_GARAGE_DOOR = 10
VOLATILE INTEGER FEEDBACK_GARAGE_DOOR = 10
VOLATILE INTEGER FEEDBACK_GARAGE_LIGHT = 13
VOLATILE INTEGER FEEDBACK_GARAGE_LIGHT_TIMER = 16
VOLATILE INTEGER FEEDBACK_GARAGE_DOOR_MOTOR = 14
VOLATILE INTEGER BUTTON_PATIO_LIGHTING = 15
VOLATILE INTEGER HTTP_RESPONSE_CALLBACK = 1
VOLATILE INTEGER HTTP_ERROR_CALLBACK = 1
VOLATILE INTEGER BTNS_GARAGE[] = {BUTTON_GARAGE_DOOR, BUTTON_PATIO_LIGHTING}
VOLATILE INTEGER IO_PATIO_SSR = 6
VOLATILE INTEGER RELAY_GARAGE_DOOR = 1
VOLATILE INTEGER IO_HOUSE_BACK_DOOR_SENSOR = 1
VOLATILE INTEGER FEEDBACK_HOUSE_BACK_DOOR = 21
VOLATILE INTEGER IO_GARAGE_DOOR_SENSOR = 1
VOLATILE INTEGER IO_GARAGE_DOOR_LIGHT = 4
VOLATILE INTEGER IO_GARAGE_DOOR_MOTOR = 5
VOLATILE INTEGER FEEDBACK_GARAGE_DOOR_LVL = 1
VOLATILE INTEGER GARAGE_DOOR_STATIONARY = 3
VOLATILE INTEGER GARAGE_DOOR_CLOSING = 2
VOLATILE INTEGER GARAGE_DOOR_OPENING = 1
VOLATILE INTEGER FEEDBACK_NI3000 = 16
VOLATILE INTEGER FEEDBACK_TPGARAGE = 17
VOLATILE INTEGER FEEDBACK_TPKITCHEN = 18
VOLATILE INTEGER BUTTON_REBOOT_MASTER = 20
VOLATILE INTEGER BUTTON_TEST = 100
VOLATILE TL1 = 1
//Media Buttons
VOLATILE INTEGER Media_Button_Pioneer_Power = 200
VOLATILE INTEGER Media_Button_Pioneer_Volume_Up = 201
VOLATILE INTEGER Media_Button_Pioneer_Volume_Down = 202
VOLATILE INTEGER Media_Button_Pioneer_Volume2_Up = 203
VOLATILE INTEGER Media_Button_Pioneer_Volume2_Down = 204
VOLATILE INTEGER Media_Button_Pioneer_Mute = 205
VOLATILE INTEGER Media_Button_Pioneer_Input_ChromeCast = 210
VOLATILE INTEGER Media_Button_Pioneer_Input_Computer = 211
VOLATILE INTEGER Media_Button_Pioneer_Input_PS3 = 212
VOLATILE INTEGER Media_Button_Pioneer_Input_TV = 213
VOLATILE INTEGER Media_Button_Dell_Power = 220
VOLATILE INTEGER Media_Buttons[] = {
Media_Button_Pioneer_Power,
Media_Button_Pioneer_Volume_Up,
Media_Button_Pioneer_Volume_Down,
Media_Button_Pioneer_Volume2_Up,
Media_Button_Pioneer_Volume2_Down,
Media_Button_Pioneer_Mute,
Media_Button_Pioneer_Input_ChromeCast,
Media_Button_Pioneer_Input_Computer,
Media_Button_Pioneer_Input_PS3,
Media_Button_Pioneer_Input_TV,
Media_Button_Dell_Power
}
//Media Feedback Channels
VOLATILE INTEGER Media_Feedback_Pioneer_Connection = 200
VOLATILE INTEGER Media_Feedback_Pioneer_Volume = 201
VOLATILE INTEGER Media_Feedback_Pioneer_Volume2 = 202
VOLATILE INTEGER Media_Feedback_Pioneer_Input = 203
DEFINE_TYPE (* Used to define data structures *)
DEFINE_VARIABLE (* Define global varibles here *)
VOLATILE INTEGER garage_door_closed = 0
VOLATILE INTEGER garage_door_prev_state = 0
VOLATILE INTEGER patio_lights_state = 0
VOLATILE LONG TimeArray[1]
VOLATILE INTEGER TLLoopCount = 0
VOLATILE INTEGER pos = 0
VOLATILE CHAR PioneerIPAddress[] = '192.168.1.10'
VOLATILE INTEGER PioneerPort = 8102
//Media State Variables
VOLATILE INTEGER Media_State_Pioneer_Power = 4;