mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-22 04:58:01 +00:00
Merge pull request #2108 from markbirss/develop
Add initial support for BETAFPV ELRS Micro TX Module 2.4G with ESP32 CPU
This commit is contained in:
commit
49172e416e
@ -26,6 +26,11 @@ bool SX128xInterface<T>::init()
|
|||||||
pinMode(SX128X_POWER_EN, OUTPUT);
|
pinMode(SX128X_POWER_EN, OUTPUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef RF95_FAN_EN
|
||||||
|
pinMode(RF95_FAN_EN, OUTPUT);
|
||||||
|
digitalWrite(RF95_FAN_EN, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(SX128X_RXEN) && (SX128X_RXEN != RADIOLIB_NC) // set not rx or tx mode
|
#if defined(SX128X_RXEN) && (SX128X_RXEN != RADIOLIB_NC) // set not rx or tx mode
|
||||||
digitalWrite(SX128X_RXEN, LOW); // Set low before becoming an output
|
digitalWrite(SX128X_RXEN, LOW); // Set low before becoming an output
|
||||||
pinMode(SX128X_RXEN, OUTPUT);
|
pinMode(SX128X_RXEN, OUTPUT);
|
||||||
|
17
variants/betafpv_2400_tx_micro/platformio.ini
Normal file
17
variants/betafpv_2400_tx_micro/platformio.ini
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[env:betafpv_2400_tx_micro]
|
||||||
|
extends = esp32_base
|
||||||
|
board = esp32doit-devkit-v1
|
||||||
|
build_flags =
|
||||||
|
${esp32_base.build_flags}
|
||||||
|
-D BETAFPV_2400_TX
|
||||||
|
-D VTABLES_IN_FLASH=1
|
||||||
|
-D CONFIG_DISABLE_HAL_LOCKS=1
|
||||||
|
-O2
|
||||||
|
-I variants/betafpv_2400_tx_micro
|
||||||
|
board_build.f_cpu = 240000000L
|
||||||
|
upload_protocol = esptool
|
||||||
|
upload_port = /dev/ttyUSB0
|
||||||
|
upload_speed = 460800
|
||||||
|
lib_deps =
|
||||||
|
${esp32_base.lib_deps}
|
||||||
|
makuna/NeoPixelBus@^2.7.1
|
34
variants/betafpv_2400_tx_micro/variant.h
Normal file
34
variants/betafpv_2400_tx_micro/variant.h
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
//https://betafpv.com/products/elrs-micro-tx-module
|
||||||
|
#include <NeoPixelBus.h>
|
||||||
|
|
||||||
|
// 0.96" OLED
|
||||||
|
#define I2C_SDA 22
|
||||||
|
#define I2C_SCL 32
|
||||||
|
|
||||||
|
// NO GPS
|
||||||
|
#undef GPS_RX_PIN
|
||||||
|
#undef GPS_TX_PIN
|
||||||
|
|
||||||
|
#define RF95_SCK 18
|
||||||
|
#define RF95_MISO 19
|
||||||
|
#define RF95_MOSI 23
|
||||||
|
#define RF95_NSS 5
|
||||||
|
#define RF95_FAN_EN 17
|
||||||
|
|
||||||
|
#define LED_PIN 16 // This is a LED_WS2812 not a standard LED
|
||||||
|
|
||||||
|
#define BUTTON_PIN 25
|
||||||
|
#define BUTTON_NEED_PULLUP
|
||||||
|
|
||||||
|
#undef EXT_NOTIFY_OUT
|
||||||
|
|
||||||
|
// SX128X 2.4 Ghz LoRa module
|
||||||
|
#define USE_SX1280
|
||||||
|
#define LORA_RESET 14
|
||||||
|
#define SX128X_CS 5
|
||||||
|
#define SX128X_DIO1 4
|
||||||
|
#define SX128X_BUSY 21
|
||||||
|
#define SX128X_TXEN 26
|
||||||
|
#define SX128X_RXEN 27
|
||||||
|
#define SX128X_RESET LORA_RESET
|
||||||
|
#define SX128X_MAX_POWER 13
|
Loading…
Reference in New Issue
Block a user