Heltec WiFi32 LoRa V4 running LoRaWanOLED test program

when using Heltec WiFi32 LoRa V4 running the LoRaWanOLED test program I can call LoRaWAN.displayJoining();, LoRaWAN.displaySending(); etc to display Joining, Sending, etc messages on the OLED
can I also add my own text output the OLED to display data results etc?

If you can’t access the constructor that is defined within the LoRaWAN library, you can just define your own OLED display constructor. It is perfectly valid to have two distinct constructors driving a single display, you just have to manage the potential for the two to be trying to use the display at the same time (actually, in quick succession)—the output from the second will overwrite the output from the first, which may or may not be the intended action.

EDIT: If you need one, there’s a specific example here.

thanks for the input!

using code from File>Examples>Heltec ESP32 Dev-Boards>OLED>SimpleDemo

I added the OLED display to my LORaWAN code

#include <Wire.h>
#include "HT_SSD1306Wire.h"

static SSD1306Wire display(0x3c, 500000, SDA_OLED, SCL_OLED, GEOMETRY_128_64, RST_OLED);  // addr , freq , i2c group , resolution , rst

called display.init(); in setup() and was able to call functions as required, e.g. to display battery voltage when sending LoRaWAN packet

		case DEVICE_STATE_SEND:
			{
				LoRaWAN.displaySending();
				prepareTxFrame(appPort);
				display.clear();
				display.setTextAlignment(TEXT_ALIGN_LEFT);
				display.setFont(ArialMT_Plain_16);
				char text[100] = { 0 };
				sprintf(text, "battery %dmV", analogVolts);
				display.drawString(0, 0, text);

OLED display functions such as LoRaWAN.displaySending(); had no problems working alongside calls to display.drawString(0, 40, text);