We use this display. Don't know if its the same than yours.
IIC / I2C 2002 20x02 OLED Module Display
Our Code:
this work on our side.
#define DCSBIOS_DEFAULT_SERIAL
#include "DcsBios.h"
#include "Wire.h"
#include "OLedI2C.h"
OLedI2C LCD;
/* paste code snippets from the reference documentation here */
void onCmsp1Change(char* newValue) {
LCD.sendString(newValue, 0, 0);
}
DcsBios::StringBuffer<19> cmsp1Buffer(0x1000, onCmsp1Change);
void onCmsp2Change(char* newValue) {
LCD.sendString(newValue, 0, 1);
}
DcsBios::StringBuffer<19> cmsp2Buffer(0x1014, onCmsp2Change);
void setup() {
DcsBios::setup();
Wire.begin();
LCD.init();
}
void loop() {
DcsBios::loop();
}