lcdmono 2.0.0.0
main.c File Reference

LcdMono Click example. More...

#include "board.h"
#include "log.h"
#include "lcdmono.h"
#include "lcdmono_font.h"
#include "lcdmono_image.h"

Functions

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

Detailed Description

LcdMono Click example.

Description

This application sets text on lcd displey.

The demo application is composed of two sections :

Application Init

Driver initialization - Starting LCD Mono display. Print text to the display by changing font size ...

Application Task

Drawing an image to the display every 3 second.

note:

  • Create Image: Save the image in resolution of 128x128 px with the extension (monochrome bmp) ... Upload the image to Image2Lcd program Set parameters to:
    1. Output file type : C array
    2. Scan Mode : Horisontal scan
    3. Bits Pixel : monochrome
    4. Max width and height : 128x128
    5. Check only MSB first
    6. Check Reverse color and adjust Normal type The image to be generated should contain about 2048 bytes ... Insert the image into the file lcdmono_image.h
  • Create Font: Close existing project, open a new VTFT project Add label and adjust text font Generate source code Copy the font from resource.c file to this project in file lcdmono_font.h
Author
Nemanja Medakovic

Function Documentation

◆ application_init()

void application_init ( void )

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )