Skip to content

Commit

Permalink
SX1262 T-Beam configs
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Feb 10, 2024
1 parent 5a87095 commit cac58b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions RNode_Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cac58b3

Please sign in to comment.