mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-26 22:33:24 +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 (push) Waiting to run
CI / test-native (push) Waiting to run
CI / docker-debian-amd64 (push) Waiting to run
CI / docker-alpine-amd64 (push) Waiting to run
CI / docker-debian-arm64 (push) Waiting to run
CI / docker-debian-armv7 (push) Waiting to run
CI / after-checks (push) Blocked by required conditions
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
Flawfinder Scan / Flawfinder (push) Waiting to run
52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
// #define RADIOLIB_CUSTOM_ARDUINO 1
|
|
// #define RADIOLIB_TONE_UNSUPPORTED 1
|
|
// #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 1
|
|
|
|
#define ARDUINO_ARCH_AVR
|
|
|
|
#ifndef HAS_WIFI
|
|
#define HAS_WIFI 1
|
|
#endif
|
|
|
|
// default I2C pins:
|
|
// SDA = 4
|
|
// SCL = 5
|
|
|
|
// Recommended pins for SerialModule:
|
|
// txd = 8
|
|
// rxd = 9
|
|
|
|
#define EXT_NOTIFY_OUT 22
|
|
#define BUTTON_PIN 17
|
|
|
|
#define BATTERY_PIN 26
|
|
// ratio of voltage divider = 3.0 (R17=200k, R18=100k)
|
|
#define ADC_MULTIPLIER 3.1 // 3.0 + a bit for being optimistic
|
|
#define BATTERY_SENSE_RESOLUTION_BITS ADC_RESOLUTION
|
|
|
|
#define USE_SX1262
|
|
|
|
#undef LORA_SCK
|
|
#undef LORA_MISO
|
|
#undef LORA_MOSI
|
|
#undef LORA_CS
|
|
|
|
#define LORA_SCK 10
|
|
#define LORA_MISO 12
|
|
#define LORA_MOSI 11
|
|
#define LORA_CS 3
|
|
|
|
#define LORA_DIO0 RADIOLIB_NC
|
|
#define LORA_RESET 15
|
|
#define LORA_DIO1 20
|
|
#define LORA_DIO2 2
|
|
#define LORA_DIO3 RADIOLIB_NC
|
|
|
|
#ifdef USE_SX1262
|
|
#define SX126X_CS LORA_CS
|
|
#define SX126X_DIO1 LORA_DIO1
|
|
#define SX126X_BUSY LORA_DIO2
|
|
#define SX126X_RESET LORA_RESET
|
|
#define SX126X_DIO2_AS_RF_SWITCH
|
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
|
#endif |