-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefines.h
More file actions
55 lines (47 loc) · 1 KB
/
defines.h
File metadata and controls
55 lines (47 loc) · 1 KB
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
/* Constants definition here */
#ifndef _DEFINES
#define _DEFINES
#include <stdint.h>
#include <Arduino.h>
#define DEBUG true
#define TIMEOUT 50
// Serial definitions
#define BMS_SERIAL Serial2
#define DEBUG_SERIAL Serial
#define BMS_INTERVAL_READ 500
#define BMS_DELAY_RESPONSE 200
#define BATTERY_CELL_COUNT 13
/*const String chargeFlags[] PROGMEM = {
"Off",
"Open",
"Overvoltage Protection",
"Over Current Protection",
"Battery Full",
"Total overvoltage",
"Battery Over Temp",
"PowerStage Over Temp",
"Abnormal Current",
"Balance line disconnected",
"BMS Overtemp",
"Discharge abnormal",
"Manually OFF"
};
const String dischargeFlags[] PROGMEM = {
"Off",
"Open",
"Over Discharge protection",
"Over Current protection",
"Something happened",
"Total undervoltage"
"Battery Over Temp",
"PowerStage Over Temp",
"Abnormal Current",
"Balance line disconnected",
"BMS Overtemp",
"Charge On",
"Short circuit protection",
"Discharge abnormal",
"Start exception",
"Manually Off"
};*/
#endif