-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: mverch67 <[email protected]>
- Loading branch information
Showing
2 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#ifndef _VARIANT_MESHTAB_DIY_ | ||
#define _VARIANT_MESHTAB_DIY_ | ||
|
||
#define HAS_TOUCHSCREEN 1 | ||
|
||
#define SLEEP_TIME 120 | ||
|
||
// Analog pins | ||
#define BATTERY_PIN 4 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage | ||
// ratio of voltage divider = 2.0 | ||
#define ADC_MULTIPLIER 2.11 // 2.0 + 10% for correction of display undervoltage. | ||
#define ADC_CHANNEL ADC1_GPIO4_CHANNEL | ||
|
||
// LED | ||
#define LED_PIN 21 | ||
|
||
// Button | ||
#define BUTTON_PIN 0 | ||
|
||
// GPS | ||
#define GPS_RX_PIN 18 | ||
#define GPS_TX_PIN 17 | ||
|
||
// #define HAS_SDCARD 1 | ||
#define SPI_MOSI 13 | ||
#define SPI_SCK 12 | ||
#define SPI_MISO 11 | ||
#define SPI_CS 10 | ||
#define SDCARD_CS 6 | ||
|
||
// LORA SPI | ||
#define LORA_SCK 36 | ||
#define LORA_MISO 37 | ||
#define LORA_MOSI 35 | ||
#define LORA_CS 39 | ||
|
||
// LORA MODULES | ||
#define USE_SX1262 | ||
|
||
// LORA CONFIG | ||
#define SX126X_CS LORA_CS | ||
#define SX126X_DIO1 15 | ||
#define SX126X_DIO2_AS_RF_SWITCH | ||
#define SX126X_BUSY 40 | ||
#define SX126X_RESET 14 | ||
#define SX126X_RXEN 47 | ||
#define SX126X_TXEN RADIOLIB_NC // Assuming that DIO2 is connected to TXEN pin | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters