eink213inch 2.0.0.0
main.c File Reference

eInk213Inch Click example More...

#include "board.h"
#include "log.h"
#include "eink213inch.h"
#include "eink213inch_image.h"
#include "eink213inch_font.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

uint8_t demo_text [5] = { 'e', 'I', 'N', 'K', 0 }
 
uint8_t demo_text1 [8] = { 'D', 'i', 's', 'p', 'l', 'a', 'y', 0 }
 
uint8_t demo_text2 [10] = { '2', '.', '1', '3', 'i', 'n', 'c', 'h', 0 }
 
const uint8_t eink213inch_lut_table [70]
 

Detailed Description

eInk213Inch Click example

Description

This application demonstrates the use of eINK click board.

The demo application is composed of two sections :

Application Init

Initializes the driver and configures the click board for 2.13 inch eINK display. After that, if the TEXT mode is supported, shows a desired text messages on the display.

Application Task

Draws four demo images to the display with a one-second delay between each drawing.

Note
Due to insuficient RAM memory, only the IMAGE mode is supported with 8-bit PIC and AVR microcontrollers.
  • Create Image: Save the image in resolution of 128x250 px with the extension (monochrome bmp) ... Upload the image to Image2Lcd program Set parameters to:
    1. Output file type : C array
    2. Scan Mode : Vertical scan
    3. Bits Pixel : monochrome
    4. Max Width and Height : 250x128
    5. Select only MSB first checkmark
    6. Check Reverse color and adjust Mirror Left-Right The image to be generated should contain about 4000 bytes ... Insert the image into the file eink213inch_image.h
  • Create Font: Create a new VisualTFT project Add label and adjust text font Generate source code Copy the font from resource.c file and paste it to eink213inch_font.h file

*** Changing the LUT table can lead to loss of display performance ....

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

Variable Documentation

◆ demo_text

uint8_t demo_text[5] = { 'e', 'I', 'N', 'K', 0 }

◆ demo_text1

uint8_t demo_text1[8] = { 'D', 'i', 's', 'p', 'l', 'a', 'y', 0 }

◆ demo_text2

uint8_t demo_text2[10] = { '2', '.', '1', '3', 'i', 'n', 'c', 'h', 0 }

◆ eink213inch_lut_table

const uint8_t eink213inch_lut_table[70]
Initial value:
=
{
0xA0,0x90,0x50,0x00,0x00,0x00,0x00,
0x50,0x90,0xA0,0x00,0x00,0x00,0x00,
0xA0,0x90,0x50,0x00,0x00,0x00,0x00,
0x50,0x90,0xA0,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0F,0x0F,0x0F,0x0F,0x02,0x10,0x10,
0x0A,0x0A,0x03,0x08,0x08,0x09,0x43,
0x07,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00
}