Skip to content

Top right bitmap causes column 0 corruption on 1.3" (128x64) #21

@PaulZC

Description

@PaulZC

Another weird one...

If I add text top left (0,0) and then add a bitmap top right (getWidth - bitmap.width, 0), the bitmap causes column 0 to be corrupted, but only on the 1.3" (128x64) OLED. On the Micro (64x48), it's fine.

image

image

#include <SparkFun_Qwiic_OLED.h> //http://librarymanager/All#SparkFun_Qwiic_OLED

//QwiicMicroOLED myOLED;
Qwiic1in3OLED myOLED;

#include "res/qw_bmp_truck.h"

void setup()
{
    Wire.begin();

    myOLED.begin();

    myOLED.text(0, 0, "0"); // "0" top left
    
    myOLED.bitmap(myOLED.getWidth() - QW_BMP_TRUCK.width, 0, QW_BMP_TRUCK); // Icon top right

    myOLED.display();
}

void loop()
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions