Skip to content

Commit

Permalink
fix error in using RadioLib with TGGO
Browse files Browse the repository at this point in the history
  • Loading branch information
paidforby committed Sep 13, 2020
1 parent c4d93a9 commit 40140c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion firmware/main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,11 @@ void setupLoRa()
#endif
#ifdef RL_SX1276
pinMode(LORA_CS, OUTPUT);
pinMode(LORA2_CS, OUTPUT);
digitalWrite(LORA_CS, LOW);
#ifdef DUAL_LORA
pinMode(LORA2_CS, OUTPUT);
digitalWrite(LORA2_CS, HIGH);
#endif
Layer1Class *Layer1_1 = new Layer1Class(&lora, 0, LORA_CS, LORA_RST, LORA_IRQ, 9, 915, 17);
#ifdef DUAL_LORA
digitalWrite(LORA_CS, HIGH);
Expand Down
8 changes: 8 additions & 0 deletions firmware/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ build_flags = -DTTGO_LORA_V2
-DHAS_OLED
-I./src
; -DLL2_DEBUG
;
[env:ttgo-lora32-v2-rl]
board = ttgo-lora32-v1
build_flags = -DTTGO_LORA_V2
-DRL_SX1276
-DHAS_OLED
-I./src
; -DLL2_DEBUG

[env:ttgo-lora32-tbeam]
board = ttgo-lora32-v1
Expand Down

0 comments on commit 40140c7

Please sign in to comment.