Hello,
I have just purchased a 1.8" Color OLED display and have connected it to my MBED controller using I2C.
I can control the display OK but have problem with bitmap images, other functions fro drawing circles, discs are OK.
I have the following function for the 262K bitmap:-
void DigoleSerialDisp::drawBitmap262K(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *bitmap) {
uint16_t j;
write("EDIM3");
write(x);
write(y);
write(w);
write(h);
for (j = 0; j <( h * w * 3); j++)
{
if((j%1024)==0) {
delay(_Comdelay);
}
write( (const char *) (bitmap+j) );
delay(2);
}
But when it displays the image the first third of the image is ok in size and color but then it shifts over to the right, I have tried smaller images and still get the same results. I have used the Digole website for creating the hex image data. Image produced is below:-

Please advise on a solution.
Regards
Phil.