LoRaWan_APP.cpp is always loading cubecell_SH1107Wire.h

Is it possible to add a flag just in case I don’t want to use the OLED. LoRaWan_APP.cpp is always loading cubecell_SH1107Wire.h .
I want to go low power and I don’t use OLED, also I need to reduce sketch dimension.

1 Like

hi,

you can use only LoRaWan.ino

LoRaWAN.ino includes LoRaWan_APP.h

#include "LoRaWan_APP.h"

which, in my case using CubeCell_GPS loads cubecell_SSD1306Wire.h

'#ifdef CubeCell_GPS
#include <Wire.h>
#include “cubecell_SSD1306Wire.h”

SSD1306Wire display(0x3c, 500000, I2C_NUM_0,GEOMETRY_128_64,GPIO10 ); // addr , freq , i2c group , resolution , rst

uint8_t ifDisplayAck=0;
uint8_t isDispayOn=0;
#endif

I can delete it but i have to change the source, I prefer having a flag if I want to use OLED or not.

BTW in Arduino IDE the ASR650x library is still v1.0.0, it is not updated to 1.1.0

We did the adaptation, maybe you did not clean the cache of the arduino15 folder.

C:\Users\admin\AppData\Local\Arduino15

after deleting all CubeCell files on Arduino15 I could install new version thanks
Immagine%202020-10-21%20120447

Did you find a way to drop the OLED display code without having to edit source?