Skip to content

Writing text to 2.13inch E-Ink v2 #12

@VinzzB

Description

@VinzzB

Hello,

i am trying to figure out how i can write normal text to the 2.13inch (122x250) e-ink v2 screen.
The example sketch with name 'QYEG0213RWS800' works fine. However, this example only prints a static image. I tried integrating the paint class but i could not get it to work properly.

this is my example code:

#include "QYEG0213RWS800.h"
//#include "picture.h"
#include "e_ink_display.h"
#define COLORED     0
#define UNCOLORED   1
    
void setup() {
    Serial.begin(115200);
    epd213.EPD_HW_Init(); //Electronic paper initialization    
    unsigned char image[1024];
    Paint paint(image, 122, 250);
    paint.DrawStringAt(1, 1, "TEST", &Font24, COLORED);

    unsigned char empty[1024] = { 0 };
    epd213.EPD_ALL_image(paint.GetImage(),empty);	//Refresh the picture in full screen
    epd213.EPD_DeepSleep();  //Enter deep sleep	
}

This is what is see on the epaper:
20200612_215318 (Klein)

Does anybody know how i can solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions