Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PaulZC opened this issue Mar 26, 2024 · 1 comment
Open

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

PaulZC opened this issue Mar 26, 2024 · 1 comment

Comments

@PaulZC
Copy link
Contributor

PaulZC commented Mar 26, 2024

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()
{
}
@PaulZC
Copy link
Contributor Author

PaulZC commented Mar 26, 2024

As you might expect, it is limited to the height of the bitmap:

image

    myOLED.text(0, 0, "0"); // "0" top left
    myOLED.text(0, 12, "0");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant