-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hydra specific target to define GPS EN pin and limit tx power #2608
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3b629c0
Use DIO2 bridged to TXEN and remove TX/RXEN pin switching altogether
thebentern 0dc420b
Merge branch 'master' into hydra-dio2-experiment
thebentern e1e6953
Merge branch 'master' into hydra-dio2-experiment
thebentern 49c5b2e
Add Hydra specific target to limit tx power and define GPS EN
thebentern d775729
Whoops
thebentern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,41 @@ | ||
// For OLED LCD | ||
#define I2C_SDA 21 | ||
#define I2C_SCL 22 | ||
|
||
// GPS | ||
#undef GPS_RX_PIN | ||
#undef GPS_TX_PIN | ||
#define GPS_RX_PIN 12 | ||
#define GPS_TX_PIN 15 | ||
#define GPS_UBLOX | ||
#define PIN_GPS_EN 4 | ||
|
||
#define BUTTON_PIN 39 // The middle button GPIO on the T-Beam | ||
#define BATTERY_PIN 35 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage | ||
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL | ||
#define ADC_MULTIPLIER 1.85 // (R1 = 470k, R2 = 680k) | ||
#define EXT_PWR_DETECT 4 // Pin to detect connected external power source for LILYGO® TTGO T-Energy T18 and other DIY boards | ||
#define EXT_NOTIFY_OUT 12 // Overridden default pin to use for Ext Notify Module (#975). | ||
#define LED_PIN 2 // add status LED (compatible with core-pcb and DIY targets) | ||
|
||
#define LORA_DIO0 26 // a No connect on the SX1262/SX1268 module | ||
#define LORA_RESET 23 // RST for SX1276, and for SX1262/SX1268 | ||
#define LORA_DIO1 33 // IRQ for SX1262/SX1268 | ||
#define LORA_DIO2 32 // BUSY for SX1262/SX1268 | ||
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262/SX1268, if DIO3 is high the TXCO is enabled | ||
|
||
#define RF95_SCK 5 | ||
#define RF95_MISO 19 | ||
#define RF95_MOSI 27 | ||
#define RF95_NSS 18 | ||
|
||
#define USE_SX1262 | ||
|
||
#define SX126X_CS 18 // NSS for SX126X | ||
#define SX126X_DIO1 LORA_DIO1 | ||
#define SX126X_BUSY LORA_DIO2 | ||
#define SX126X_RESET LORA_RESET | ||
|
||
// Set lora.tx_power to 13 for Hydra or other E22 900M30S target due to PA | ||
#define SX126X_MAX_POWER 13 | ||
#define SX126X_E22 |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thebentern Why is the power for Ebyte chips limited to 22 here, even when they can go to 30? In the comment, it mentions it's because of the PA, but I am not sure how that's affecting this.