Advertise here

E-paper display 296*152 UC8151 driver and SAMD21 xplained Pro

E-paper display 296*152 UC8151 with ASF4


In this article I will show you how to program E-paper display with any SAM-32bit Microcontroller based on Atmel "Advanced"software Firmwork.

this display uses SPI 4-wire communication bus , it's very simple to operate (check the datasheet from here) and in this article I used SAMD21 xplained pro board with SERCOM0 for spi communication with the display.



Connection as following:


PB04 ----------> Display_BUSY_pin
PB06 ----------> Display_RST_pin
PB07 ----------> Display_DC_pin
PA05 ----------> display_CS
PA06 ----------> display SDA
PA07 ----------> display SCL





you could find the Library ,example to run this display from my github  

note that the display need some time to refresh the content from the internal SRAM to the display itself.

how to draw a bitmap on the screen?

  1. select the image you want and save it as BMP Monochrome image(I used paint on windows to do this).

  2. using LCD assistance software for windows, convert the image to an array with 152*296 size as shown in the image below.

  3. copy the array and paste it in bitmap_logo.h file and then call it in your main program using.
    UC8151_DisplayFrame(Black_array,Red_array);



in the near future I will update the library to work with ASYNC and DMA SPI driver to improve the speed of the graphics output on the screen as much as I can (and will be helpful for background process while the MCU working on something else). 


here some photos for the output of the code.










No comments

Powered by Blogger.