waveshareteam / e-Paper

1.33k stars 595 forks source link

Displaying Image #305

Open monurbstnc opened 1 year ago

monurbstnc commented 1 year ago

Hello I want to display an image in my e-paper (Waveshare 2.13 inch) . Arduino examples works fine. But I did not get how to configure for special usage. For example ; I want to display an image and I dont know which function should I call.

In the Example

if 1 //show image for array

Debug("show image for array\r\n");
Paint_SelectImage(BlackImage);
Paint_Clear(WHITE);
Paint_DrawBitMap(gImage_2in13);

EPD_2in13_V3_Display(BlackImage);
DEV_Delay_ms(2000);

endif

We have this codes . Why we use below functions Paint_SelectImage(BlackImage); Paint_Clear(WHITE); EPD_2in13_V3_Display(BlackImage);

Thaks for your helps

shhds commented 11 months ago

Paint_DrawBitMap(gImage_2in13);

Is to write the data of gImage_2in13 to BlackImage, if you don't want to do extra operations can be simplified as follows

EPD_2in13_V3_Display(gImage_2in13 ); DEV_Delay_ms(2000);