STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1#pragma once
2
3// Environmental data transmit rate
4#define ENV_SEND_RATE_HZ 5
5#define ENV_SEND_INTERVAL_MS (1000 / ENV_SEND_RATE_HZ) // 200 ms
6
7// Board heartbeat rate (matches hotfire standard)
8#define ENV_HEARTBEAT_INTERVAL_MS 1000
9
10// BME280 I2C address: 0x76 (SDO low) or 0x77 (SDO high)
11#define BME280_I2C_ADDR 0x76
12
13// Board identity — sets static IP to 192.168.2.ENV_BOARD_ID
14#define ENV_BOARD_ID 25
15
16// Network
17#define ENV_SERVER_IP_OCTET_4 20 // server = 192.168.2.20
18#define ENV_SERVER_PORT 5006
19#define ENV_LOCAL_PORT 5005
20#define ENV_OTA_PORT 3232
21
22// Ethernet init delays — match hotfire board values
23#define ENV_ETH_SPI_DELAY_MS 1000
24#define ENV_ETH_INIT_DELAY_MS 1000
25#define ENV_ETH_BEGIN_DELAY_MS 1000