![]() |
Firmware for an ad-hoc mesh network of Internet-of-Things devices based on LoRa (Long Range radio) that can be deployed quickly and cheaply.
|
CDP central compile-time configuration file. More...
Go to the source code of this file.
Macros | |
#define | CDPCFG |
#define | CDPCFG_BOARD_DEFAULT |
#define | CDPCFG_PIN_BAT 37 |
#define | CDPCFG_BAT_MULDIV 320 / 100 |
#define | CDPCFG_PIN_VEXT 21 |
#define | CDPCFG_PIN_LED1 25 |
#define | CDPCFG_PIN_LORA_CS 18 |
#define | CDPCFG_PIN_LORA_DIO0 26 |
#define | CDPCFG_PIN_LORA_RST 14 |
#define | CDPCFG_PIN_OLED_CLOCK 15 |
#define | CDPCFG_PIN_OLED_DATA 4 |
#define | CDPCFG_PIN_OLED_RESET 16 |
#define | CDPCFG_PIN_OLED_ROTATION U8G2_R0 |
#define | CDPCFG_PIN_LORA_DIO1 -1 |
#define | CDPCFG_UPDATE_USERNAME "username" |
Non board specific configuration. More... | |
#define | CDPCFG_UPDATE_PASSWORD "password" |
#define | CDPCFG_SERIAL_BAUD 115200 |
Serial Console Baud Rate. More... | |
#define | CDPCFG_AP_IP1 192 |
#define | CDPCFG_AP_IP2 168 |
#define | CDPCFG_AP_IP3 1 |
#define | CDPCFG_AP_IP4 1 |
#define | CDPCFG_WEB_PORT 80 |
Asyncwebserver Port. More... | |
#define | CDPCFG_RF_LORA_FREQ 915.0 |
Frequency Range. Set for US Region 915.0Mhz. More... | |
#define | CDPCFG_RF_LORA_BW 125.0 |
Bandwidth. Default is 125Mhz. More... | |
#define | CDPCFG_RF_LORA_SF 7 |
Spread Factor. More... | |
#define | CDPCFG_RF_LORA_TXPOW 20 |
Transmit Power. More... | |
#define | CDPCFG_RF_LORA_GAIN 0 |
Antenna Gain correction. More... | |
#define | CDPCFG_CDP_BUFSIZE 256 |
CDP message buffer max length. More... | |
#define | CDPCFG_UUID_LEN 8 |
CDP UUID generator max length. More... | |
#define | CDPCFG_MILLIS_ALIVE 1800000 |
CDP ALIVE timer duration in milliseconds. More... | |
#define | CDPCFG_MILLIS_REBOOT 43200000 |
CDP REBOOT timer duration in milliseconds. More... | |
#define | CDPCFG_PIN_RGBLED_R 25 |
CDP RGB Led RED Pin default value. More... | |
#define | CDPCFG_PIN_RGBLED_G 4 |
CDP RGB Led GREEN Pin default value. More... | |
#define | CDPCFG_PIN_RGBLED_B 2 |
CDP RGB Led BLUE Pin default value. More... | |
#define | CDPCFG_LORA_CLASS SX1276 |
Default LoRa Module supported chipset. More... | |
#define | CDPCFG_OLED_CLASS U8G2_SSD1306_128X64_NONAME_F_SW_I2C |
#define | CRPCFG_POST |
CDP central compile-time configuration file.
cdpcfg-pre.h
at the beginningcdpcfg-post.h
at the endTo customize your build, you could ...
cdpcfg-pre.h
and edit that orcdpcfg-pre.h
that just overrides f.ex. the board defines orcdpcfg-post.h
to undef/define just parts#define CDPCFG |
#define CDPCFG_AP_IP1 192 |
#define CDPCFG_AP_IP2 168 |
#define CDPCFG_AP_IP3 1 |
#define CDPCFG_AP_IP4 1 |
#define CDPCFG_BAT_MULDIV 320 / 100 |
#define CDPCFG_BOARD_DEFAULT |
BOARD "ttgo lora" and "heltec lora" v1
heltec pcb is white, ttgo pcb has heltec+ttgo markings left top+middle in this picture https://github.com/Xinyuan-LilyGO/TTGO-LoRa-Series pio: board = ttgo-lora32-v1
#define CDPCFG_CDP_BUFSIZE 256 |
CDP message buffer max length.
#define CDPCFG_LORA_CLASS SX1276 |
Default LoRa Module supported chipset.
#define CDPCFG_MILLIS_ALIVE 1800000 |
CDP ALIVE timer duration in milliseconds.
#define CDPCFG_MILLIS_REBOOT 43200000 |
CDP REBOOT timer duration in milliseconds.
#define CDPCFG_OLED_CLASS U8G2_SSD1306_128X64_NONAME_F_SW_I2C |
#define CDPCFG_PIN_BAT 37 |
#define CDPCFG_PIN_LED1 25 |
#define CDPCFG_PIN_LORA_CS 18 |
#define CDPCFG_PIN_LORA_DIO0 26 |
#define CDPCFG_PIN_LORA_DIO1 -1 |
#define CDPCFG_PIN_LORA_RST 14 |
#define CDPCFG_PIN_OLED_CLOCK 15 |
#define CDPCFG_PIN_OLED_DATA 4 |
#define CDPCFG_PIN_OLED_RESET 16 |
#define CDPCFG_PIN_OLED_ROTATION U8G2_R0 |
#define CDPCFG_PIN_RGBLED_B 2 |
CDP RGB Led BLUE Pin default value.
#define CDPCFG_PIN_RGBLED_G 4 |
CDP RGB Led GREEN Pin default value.
#define CDPCFG_PIN_RGBLED_R 25 |
CDP RGB Led RED Pin default value.
#define CDPCFG_PIN_VEXT 21 |
#define CDPCFG_RF_LORA_BW 125.0 |
Bandwidth. Default is 125Mhz.
#define CDPCFG_RF_LORA_FREQ 915.0 |
Frequency Range. Set for US Region 915.0Mhz.
#define CDPCFG_RF_LORA_GAIN 0 |
Antenna Gain correction.
#define CDPCFG_RF_LORA_SF 7 |
Spread Factor.
#define CDPCFG_RF_LORA_TXPOW 20 |
Transmit Power.
#define CDPCFG_SERIAL_BAUD 115200 |
Serial Console Baud Rate.
#define CDPCFG_UPDATE_PASSWORD "password" |
#define CDPCFG_UPDATE_USERNAME "username" |
Non board specific configuration.
#define CDPCFG_UUID_LEN 8 |
CDP UUID generator max length.
#define CDPCFG_WEB_PORT 80 |
Asyncwebserver Port.
#define CRPCFG_POST |