eink154inch 2.0.0.0
main.c File Reference

Eink154Inch Click example. More...

#include "board.h"
#include "log.h"
#include "eink154inch.h"
#include "eink154inch_image.h"
#include "eink154inch_font.h"

Functions

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

Variables

const uint8_t eink154inch_lut_table [30]
 
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] = { '1', '.', '5', '4', 'i', 'n', 'c', 'h', 0 }
 

Detailed Description

Eink154Inch 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 1.54 inch eINK display. After that, if the TEXT mode is supported, shows a desired text messages on the display.

Application Task

Draws two 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.

Here is the procedure for creating an Image or Font arrays:

  • Create Image: Save the image in resolution of 200x200 px with the extension (monochrome bmp) ... Upload the image to Image2Lcd program Set parameters to:
    1. Output file type : C array
    2. Scan Mode : Horizon scan
    3. Bits Pixel : monochrome
    4. Max Width and Height : 200x200
    5. Select only MSB first checkmark
    6. Check Reverse color and adjust Normal type The image to be generated should contain about 5000 bytes ... Insert the image into the file eink154inch_image.h
  • Create Font: Create a new VisualTFT project Add label and adjust text font Generate source code Copy the font array from resource.c file and paste it to eink154inch_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] = { '1', '.', '5', '4', 'i', 'n', 'c', 'h', 0 }

◆ eink154inch_lut_table

const uint8_t eink154inch_lut_table[30]
Initial value:
=
{
0x02, 0x02, 0x01, 0x11, 0x12, 0x12, 0x22, 0x22,
0x66, 0x69, 0x69, 0x59, 0x58, 0x99, 0x99, 0x88,
0x00, 0x00, 0x00, 0x00, 0xF8, 0xB4, 0x13, 0x51,
0x35, 0x51, 0x51, 0x19, 0x01, 0x00
}