mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 19:05:44 +00:00

Some checks are pending
CI / setup (check) (push) Waiting to run
CI / setup (esp32) (push) Waiting to run
CI / setup (esp32c3) (push) Waiting to run
CI / setup (esp32c6) (push) Waiting to run
CI / setup (esp32s3) (push) Waiting to run
CI / setup (nrf52840) (push) Waiting to run
CI / setup (rp2040) (push) Waiting to run
CI / setup (stm32) (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build-esp32 (push) Blocked by required conditions
CI / build-esp32-s3 (push) Blocked by required conditions
CI / build-esp32-c3 (push) Blocked by required conditions
CI / build-esp32-c6 (push) Blocked by required conditions
CI / build-nrf52 (push) Blocked by required conditions
CI / build-rpi2040 (push) Blocked by required conditions
CI / build-stm32 (push) Blocked by required conditions
CI / build-debian-src (push) Waiting to run
CI / package-pio-deps-native-tft (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker-deb-amd64 (push) Waiting to run
CI / docker-deb-amd64-tft (push) Waiting to run
CI / docker-alp-amd64 (push) Waiting to run
CI / docker-alp-amd64-tft (push) Waiting to run
CI / docker-deb-arm64 (push) Waiting to run
CI / docker-deb-armv7 (push) Waiting to run
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
CI / publish-firmware (push) Blocked by required conditions
55 lines
1.6 KiB
C
Executable File
55 lines
1.6 KiB
C
Executable File
/*
|
|
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
|
|
|
|
#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
|
|
#endif
|
|
|
|
/*
|
|
#define BATTERY_PIN 4 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
|
|
#define ADC_CHANNEL ADC1_GPIO4_CHANNEL
|
|
#define ADC_MULTIPLIER 4
|
|
#define BATTERY_SENSE_SAMPLES 15 // Set the number of samples, It has an effect of increasing sensitivity.
|
|
#define BAT_FULLVOLT 8400
|
|
#define BAT_EMPTYVOLT 5000
|
|
#define BAT_CHARGINGVOLT 8400
|
|
#define BAT_NOBATVOLT 4460
|
|
#define CELL_TYPE_LION // same curve for liion/lipo
|
|
#define NUM_CELLS 2
|
|
*/
|