SX1262 T-Beam configs

This commit is contained in:
Mark Qvist 2024-02-10 19:19:22 +01:00
parent 5a87095e30
commit cac58b318a
3 changed files with 13 additions and 1 deletions

View File

@ -158,6 +158,13 @@
#define HAS_CONSOLE true
#define HAS_SD false
#define HAS_EEPROM true
#if MODEM == SX1262
// TODO: Figure out how on earth the SX1262 T-Beams are actually connected
// #define HAS_RF_SWITCH_RX_TX true
// const int pin_rxen = 32;
#define HAS_BUSY true
const int pin_busy = 32;
#endif
#elif BOARD_MODEL == BOARD_HUZZAH32
const int pin_cs = 4;
const int pin_reset = 36;
@ -278,7 +285,9 @@
#endif
#endif
#elif BOARD_MODEL == BOARD_RNODE_NG_22
#define IS_ESP32S3 true
#define HAS_DISPLAY true
#define HAS_BLE true
#define HAS_BLUETOOTH false // TODO: Implement
#define HAS_CONSOLE false // TODO: Implement
#define HAS_PMU true

View File

@ -168,7 +168,7 @@ upload-rnode_ng_22:
@sleep 1
rnodeconf /dev/ttyACM0 --firmware-hash $$(./partition_hashes ./build/esp32.esp32.esp32s3/RNode_Firmware.ino.bin)
@sleep 3
python ./Release/esptool/esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 921600 --before hard_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x210000 ./Release/console_image.bin
python ./Release/esptool/esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x210000 ./Release/console_image.bin
upload-featheresp32:
arduino-cli upload -p /dev/ttyUSB0 --fqbn esp32:esp32:featheresp32

View File

@ -154,6 +154,9 @@ void setup() {
#if HAS_BLUETOOTH
bt_init();
bt_init_ran = true;
#elif HAS_BLE
// TODO: Implement BLE on ESP32S3 instead of this hack
bt_ready = true;
#endif
if (console_active) {