Troubles by setting WiFi LoRa 32(V3)

Hi all, I am trying to coming back to program after some years.
I have a project in mind and I want to use Lora 32 V3, I am not a fan of Arduino IDE, that’s why I want to move this to Platformio (still learning).

I am able to build/upload easy programs in the board, but when I tried to use the OLED screen by adding Heltec ESP32 Dev-Boards. But I see issues by different dependencies:

Here my .ini After add Adafruit dependencies needed for Heltec lib

[[env:heltec_wifi_lora_32_V3]
platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
lib_deps = 
	heltecautomation/Heltec ESP32 Dev-Boards @ ^2.1.2
	adafruit/Adafruit GFX Library@^1.11.11
	adafruit/Adafruit BusIO@^1.17.0

Also I had to add next headers requested:
Missing Wire.h header, I added it.
Missing SPI.h header, I added it.

Now I get nex huge list of issues, what is showing I have a problems with my lib dependencies, any suggestion?

Thanks in advantage
Juan

Building in release mode
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/LoRaWan_APP.cpp.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/gpio-board.c.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx1262-board.c.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx126x.c.o
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx1276-board.c.o
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/gpio-board.c: In function 'GpioMcuWrite':
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/gpio-board.c:56:15: error: 'RADIO_NSS' undeclared (first use in this function); did you mean 'RAD_TO_DEG'?
  if(obj->pin==RADIO_NSS && radio_nss_inited==false)
               ^~~~~~~~~
               RAD_TO_DEG
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/gpio-board.c:56:15: note: each undeclared identifier is reported only once for each function it appears in
Compiling .pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/sx1276.c.o
*** [.pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/driver/gpio-board.c.o] Error 1
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:9,
                 from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/loramac/LoRaMac.h:141: warning: "LORA_MAC_PRIVATE_SYNCWORD" redefined
 #define LORA_MAC_PRIVATE_SYNCWORD                   0x12
 
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/ESP32_Mcu.h:13,
                 from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:7,
                 from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/sx126x.h:122: note: this is the location of the previous definition
 #define LORA_MAC_PRIVATE_SYNCWORD                   0x1424
 
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:9,
                 from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/loramac/LoRaMac.h:146: warning: "LORA_MAC_PUBLIC_SYNCWORD" redefined
 #define LORA_MAC_PUBLIC_SYNCWORD                    0x34
 
In file included from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/ESP32_Mcu.h:13,
                 from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.h:7,
                 from .pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:1:
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/driver/sx126x.h:127: note: this is the location of the previous definition
 #define LORA_MAC_PUBLIC_SYNCWORD                    0x3444
 
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:40:34: error: 'LoRaWAN_DEBUG_LEVEL' was not declared in this scope
 RTC_DATA_ATTR uint8_t debugLevel=LoRaWAN_DEBUG_LEVEL;
                                  ^~~~~~~~~~~~~~~~~~~
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:40:34: note: suggested alternative: 'XCHAL_DEBUGLEVEL'
 RTC_DATA_ATTR uint8_t debugLevel=LoRaWAN_DEBUG_LEVEL;
                                  ^~~~~~~~~~~~~~~~~~~
                                  XCHAL_DEBUGLEVEL
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp: In member function 'void LoRaWanClass::sleep(DeviceClass_t)':
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:666:33: error: 'HELTEC_BOARD' was not declared in this scope
  Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
                                 ^~~~~~~~~~~~
.pio/libdeps/heltec_wifi_lora_32_V3/Heltec ESP32 Dev-Boards/src/LoRaWan_APP.cpp:666:46: error: 'SLOW_CLK_TPYE' was not declared in this scope
  Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
                                              ^~~~~~~~~~~~~
*** [.pio/build/heltec_wifi_lora_32_V3/lib84e/Heltec ESP32 Dev-Boards/LoRaWan_APP.cpp.o] Error 1
======================================== [FAILED] Took 3.48 seconds ========================================

 *  The terminal process "platformio 'run'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Juan, I’m having the same issue - no problems encountered when using the Arduino IDE, but getting this going in vscode with platformio is a nightmare - have you by any chance made any progress in sorting this out?

by removing the

heltecautomation/Heltec ESP32 Dev-Boards @ ^2.1.2

dependency, and instead using

ropg/Heltec_ESP32_LoRa_v3 @ ^0.9.2

I’m left with this .ini file:

platform = espressif32
board = heltec_wifi_lora_32_V3
framework = arduino
build_flags = -DARDUINO_heltec_wifi_lora_32_V3 -DARDUINO_USB_MODE=1 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1
lib_deps =  
	thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@^4.6.1
	ropg/HotButton@^0.1.1
	jgromes/RadioLib@^7.1.2
	ropg/Heltec_ESP32_LoRa_v3 @ ^0.9.2

I’m having challenges now getting the WiFi stuff working, but the issue above seems to be caused by using the heltec libraries without some other libraries. Be nice to know what they were - keen to see how you’ve progressed though.