Add initial support for Station G3 variant (#10457)
* Add initial support for Station G3 variant * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot Autofix powered by AI
parent
0a7b3c723e
commit
59025e4820
@@ -22,10 +22,11 @@ upload_speed = 921600
|
||||
build_unflags =
|
||||
${esp32s3_base.build_unflags}
|
||||
-DARDUINO_USB_MODE=0
|
||||
build_flags =
|
||||
build_flags =
|
||||
${esp32s3_base.build_flags}
|
||||
-D STATION_G2
|
||||
-I variants/esp32s3/station-g2
|
||||
-I variants/esp32s3/station-common
|
||||
-DBOARD_HAS_PSRAM
|
||||
-DSTATION_G2
|
||||
-DARDUINO_USB_MODE=1
|
||||
@@ -2,39 +2,9 @@
|
||||
Board Information: https://wiki.uniteng.com/en/meshtastic/station-g2
|
||||
*/
|
||||
|
||||
// Station G2 may not have GPS installed, but it has a GROVE GPS Socket for Optional GPS Module
|
||||
#define GPS_RX_PIN 7
|
||||
#define GPS_TX_PIN 15
|
||||
|
||||
// Station G2 has 1.3 inch OLED Screen
|
||||
#define USE_SH1107_128_64
|
||||
|
||||
#define I2C_SDA 5 // I2C pins for this board
|
||||
#define I2C_SCL 6
|
||||
|
||||
#define BUTTON_PIN 38 // This is the Program Button
|
||||
#define BUTTON_NEED_PULLUP
|
||||
|
||||
#define USE_SX1262
|
||||
|
||||
#define LORA_MISO 14
|
||||
#define LORA_SCK 12
|
||||
#define LORA_MOSI 13
|
||||
#define LORA_CS 11
|
||||
|
||||
#define LORA_RESET 21
|
||||
#define LORA_DIO1 48
|
||||
#include "station_common.h"
|
||||
|
||||
#ifdef USE_SX1262
|
||||
#define SX126X_CS LORA_CS // FIXME - we really should define LORA_CS instead
|
||||
#define SX126X_DIO1 LORA_DIO1
|
||||
#define SX126X_BUSY 47
|
||||
#define SX126X_RESET LORA_RESET
|
||||
|
||||
// DIO2 controlls an antenna switch and the TCXO voltage is controlled by DIO3
|
||||
#define SX126X_DIO2_AS_RF_SWITCH
|
||||
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
||||
|
||||
// Ensure the PA does not exceed the saturation output power. More
|
||||
// Info:https://wiki.uniteng.com/en/meshtastic/station-g2#summary-for-lora-power-amplifier-conduction-test
|
||||
#define SX126X_MAX_POWER 19
|
||||
|
||||
Reference in New Issue
Block a user