72 lines
1.5 KiB
INI
Raw Normal View History

2023-06-24 17:09:33 +02:00
; Project configuration file
[config]
; Hardware Serial baud rate
; Also available in the code as `MONITOR_SPEED`
monitor_speed = 115200
; Software Config
; note: additionnal flags are added by Platform.io (see total amount in `.vscode/c_cpp_properties.json` in the `defines` section)
; notworthy ones:
; __PLATFORMIO_BUILD_DEBUG__ = debug mode
build_flags =
; DO NOT TOUCH --- START
-D MONITOR_SPEED=${config.monitor_speed}
; DO NOT TOUCH --- END
-D EXAMPLE_NUMBER=69
2023-07-11 16:22:28 +02:00
-D DHT_PIN=D4
-D DHT_TYPE=DHT11
2023-06-26 16:33:44 +02:00
2023-07-11 16:22:28 +02:00
-D BMS180_SDA=D2
-D BMS180_SCL=D1
2023-06-26 16:33:44 +02:00
2023-07-11 16:22:28 +02:00
-D G_CLK=D5
-D G_MISO=D6
-D G_MOSI=D7
2023-06-26 16:33:44 +02:00
2023-07-11 16:22:28 +02:00
-D SD_CS=D8
2023-06-26 16:33:44 +02:00
2023-07-11 16:22:28 +02:00
-D LORA_CS=D3
2023-07-11 15:21:59 +02:00
2023-07-11 16:22:28 +02:00
-D LORA_IO0=RX
2023-07-11 15:21:59 +02:00
2023-07-11 16:22:28 +02:00
; FARM DATA RELAY SYSTEM
; Sensor Configuration
2023-07-11 15:21:59 +02:00
2023-07-11 16:22:28 +02:00
-D FDRS_DEBUG ; allow FARM DATA serial debuging
-D RADIOLIB_DEBUG ; allow Radio serial debuging
2023-06-26 16:33:44 +02:00
2023-07-11 16:22:28 +02:00
; sensor ID
-D READING_ID=2
; Address of the gateway
-D GTWY_MAC=0x01
; uncomment to use
; -D USE_ESPNOW ; comunicate with ESPNow
-D USE_LORA ; communicate with LoRa
-D DEEP_SLEEP ; use deep sleep
; -D POWER_CTRL=14
; LoRa Configuration
-D RADIOLIB_MODULE=SX1278
-D LORA_SS=LORA_CS
-D LORA_RST=17
-D LORA_DIO=RX
-D LORA_BUSY=RADIOLIB_NC
; -D USE_SX126X
-D LORA_TXPWR=20 ; LoRa TX power in dBm (: +2dBm - +17dBm (for SX1276-7) +20dBm (for SX1278))
-D LORA_ACK ; Request LoRa acknowledgment.
-D LORA_SPI_SCK=G_CLK
-D LORA_SPI_MISO=G_MISO
-D LORA_SPI_MOSI=G_MOSI
2023-07-17 17:09:50 +02:00
-D LORA_FREQUENCY=433
-D USE_SD_LOG
-D SD_SS=SD_CS
-D LOG_FILENAME=\"log_capteur_01.txt\"