mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-11-25 09:23:09 -05:00
Implemented support for Heltec V4 with PA
This commit is contained in:
parent
e2c1cd3766
commit
d06ec065de
4 changed files with 49 additions and 5 deletions
|
|
@ -129,7 +129,7 @@ void setup() {
|
|||
boot_seq();
|
||||
#endif
|
||||
|
||||
#if BOARD_MODEL != BOARD_RAK4631 && BOARD_MODEL != BOARD_HELTEC_T114 && BOARD_MODEL != BOARD_TECHO && BOARD_MODEL != BOARD_T3S3 && BOARD_MODEL != BOARD_TBEAM_S_V1
|
||||
#if BOARD_MODEL != BOARD_RAK4631 && BOARD_MODEL != BOARD_HELTEC_T114 && BOARD_MODEL != BOARD_TECHO && BOARD_MODEL != BOARD_T3S3 && BOARD_MODEL != BOARD_TBEAM_S_V1 && BOARD_MODEL != BOARD_HELTEC32_V4
|
||||
// Some boards need to wait until the hardware UART is set up before booting
|
||||
// the full firmware. In the case of the RAK4631 and Heltec T114, the line below will wait
|
||||
// until a serial connection is actually established with a master. Thus, it
|
||||
|
|
@ -856,7 +856,11 @@ void serial_callback(uint8_t sbyte) {
|
|||
} else {
|
||||
int txp = sbyte;
|
||||
#if MODEM == SX1262
|
||||
if (txp > 22) txp = 22;
|
||||
#if HAS_LORA_PA
|
||||
if (txp > PA_MAX_OUTPUT) txp = PA_MAX_OUTPUT;
|
||||
#else
|
||||
if (txp > 22) txp = 22;
|
||||
#endif
|
||||
#elif MODEM == SX1280
|
||||
#if HAS_PA
|
||||
if (txp > 20) txp = 20;
|
||||
|
|
@ -1644,6 +1648,12 @@ void sleep_now() {
|
|||
update_display(true);
|
||||
#endif
|
||||
#endif
|
||||
#if BOARD_MODEL == BOARD_HELTEC32_V4
|
||||
digitalWrite(LORA_PA_CPS, LOW);
|
||||
digitalWrite(LORA_PA_CSD, LOW);
|
||||
digitalWrite(LORA_PA_PWR_EN, LOW);
|
||||
digitalWrite(Vext, HIGH);
|
||||
#endif
|
||||
#if PIN_DISP_SLEEP >= 0
|
||||
pinMode(PIN_DISP_SLEEP, OUTPUT);
|
||||
digitalWrite(PIN_DISP_SLEEP, DISP_SLEEP_LEVEL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue