-
Notifications
You must be signed in to change notification settings - Fork 4
/
Globals.h
111 lines (83 loc) · 2.23 KB
/
Globals.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#ifndef _Globals_h
#define _Globals_h
#include <Arduino.h> //needed
/* PIN References... Also defined somewhere else in the esp included code so do not unhide this section!!!...
static const uint8_t D0 = 16; and Red Led on NodeMcu V2 (not present on NodeMCU v3)
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2; and Blue Led on ESP8266 also is i2c clk?
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t D9 = 3;
static const uint8_t D10 = 1;
#define NodeMCUPinD[SignalLed] 2 //same as PIN D4!
*/
/*//sound volumes references
CV[100]=127; //Overall volume control
CV[101]=127; //volume for F1
CV[102]=127;
CV[103]=127;
CV[104]=127;
CV[105]=127;
CV[106]=127;
CV[107]=127;
CV[108]=127; //Volume for F8
CV[110]=127; //volume for chuffs
CV[111]=127; //volume for Brake Squeal
//
*/
//stuff for ssid reset
boolean ResetWiFi;
char DebugMsg[127];
char temp_msg[31];
//#include "SV.h"
//one cross reference for each port
uint8_t NodeMCUPinD[18]; // hard fixed //Number of ports +2
uint8_t recMessage[128];
uint8_t sendMessage[128];
uint8_t TOPIC[20];
char DebugMessage[128];
uint8_t LenDebugMessage;
//any MQTT Stuff??
uint32_t MsgSendTime;
boolean MSGReflected;
uint8_t SentMessage[128];
uint8_t SentMessage_Length;
String SentTopic;
int connects;
int oldconnects;
uint16_t Message_Length;
boolean Message_Decoded;
boolean SensorOutput_Inactive ;
boolean DealtWith ;
boolean POWERON;
boolean LOCO ;
boolean Phase;
uint16_t MyLocoAddr ;
uint8_t Loco_motor_servo_demand = 0 ;
uint8_t Loco_servo_last_position;
bool Last_Direction;
//bool Last_Set_Dir;
boolean bReaderActive = false;
int RFIDSTATE ;
uint32_t RFIDCycle;
uint8_t RFIDDots;
boolean Data_Updated;
uint32_t EPROM_Write_Delay;
uint32_t Ten_Sec = 10000;
uint32_t OneDay = 8640000;
uint32_t MSTimer;
uint8_t CV[200];
uint8_t RN[36]; //rcc fix this for numberofports 35 + (NumberOfPorts*35)
uint8_t RNm[35]; // settings for node parameters
//uint16_t ROCNode_Status; ?not needed now
char Nickname[35];
uint8_t hrs;
uint8_t mins;
uint8_t secs;
uint32_t lastsec;
uint8_t divider;
#endif