Sentinel
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1
6
7#ifndef MAIN_H
8#define MAIN_H
9
10#define DEBUG 1
11
12
13#define DEVICE_ID "SENTINEL-001";
14
19#define RGB_RED_PIN 16
20#define RGB_GREEN_PIN 15
21#define RGB_BLUE_PIN 7
22
27#define DHTTYPE DHT22
28#define DHT_PIN 32
29
34#define STRAP_NAME "POLAR H9 EC351E2B"
35#define HEARTRATE_SERVICE_UUID "180D"
36#define HEARTRATE_CHAR_UUID "2A37"
37
42#define GAS_PIN (34)
43// #define GAS_BOARD ("ESP-32")
44// #define GAS_TYPE ("MQ-2")
45// #define GAS_VOLTAGE_RESOLUTION (12)
46// #define GAS_ADC_BIT_RESOLUTION (12)
47// #define GAS_RATIO_CLEANAIR (9.83)
48
54#define SDA_PIN 21
55#define SCL_PIN 22
56
57
58#define MPU6500_ADDR 0x68
59
64#define ACC_THRESHOLD 2.0
65#define ANGLE_THRESHOLD 60.0
66#define MAX_TIME_BETWEEN 2000
67#define STEP_THRESHOLD 1.2
68#define STEP_DEBOUNCE_MS 300
69
74#define X_OFFSET 0.0737
75#define Y_OFFSET -0.6132
76#define Z_OFFSET -0.9986
77
78#endif