Problem description:
I'm working on a project where I want to display data recieved from a LoRa module on an OLED display. Both LoRa and the OELD work perfectly when used one at a time. The problem is when I try to display data to the OLED after I initialize LoRa. No matter what I try I'm unable to send send anything to the OLED after the LoRa initialization. I'm currently using SH110x library but I've also tried U8G and U8G2 library, unfortunately results were the same (unable to communicate with the display)
My first thought would be a memory problem, since the Adafruit library and U8g2 with a full display buffer need 1024 bytes of memory, but that would not apply to the U8g library which uses a paged display buffer. Did you properly implement the firstPage()/nextPage() code when using U8g?
If your just displaying text on the OLED use the U8X8 library for the OLED, it uses far less memory than the others you tried. I have used the U8X8 library extensivly with LoRa modules on Atmega328 controllers, no problems.
Stick to the standard Syncwords, 0x12 and 0x34, there can be significant problems with other values.
If your using the RA-02 LoRa module with a Nano, be sure to use logic level conversion circuits so that its safe to connect the 3.3V Logic LoRa module to the 5V Logic level Nano.
Thanks for the reccomendations, I'll change the syncword. The Lora module worked perfectly a few days ago but now I've found out that the initialization fails and that's why the code stops working. I'm still trying to figure out what's wrong but thanks for the suggestions everyone.