LCD-ESP32-Driver 1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
Loading...
Searching...
No Matches
lcd_font.h File Reference

Contains representation of the fonts to be drawn on LCD display and methods that simplify the work with them. More...

#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  LCD_font_t
 Describes properties of the font to be drawn on LCD display. More...
 

Macros

#define LCD_FONT_BYTE_LINE   8
 

Typedefs

typedef struct LCD_font_t LCD_font_t
 

Functions

bool lcd_font_get_pixel (const LCD_font_t *const font, const char character, const uint16_t x, const uint16_t y, bool *const pixelOut)
 Gets information about pixel existance in specific position of the font character. More...
 

Detailed Description

Contains representation of the fonts to be drawn on LCD display and methods that simplify the work with them.

Author
Damian Úlusarczyk

Macro Definition Documentation

◆ LCD_FONT_BYTE_LINE

#define LCD_FONT_BYTE_LINE   8

Number of bits for single pixel map line of the font

Function Documentation

◆ lcd_font_get_pixel()

bool lcd_font_get_pixel ( const LCD_font_t *const  font,
const char  character,
const uint16_t  x,
const uint16_t  y,
bool *const  pixelOut 
)

Gets information about pixel existance in specific position of the font character.

Parameters
fontPointer to the selected font
characterSelected character of the font
xPosition of the pixel in X-axis
yPosition of the pixel in Y-axis
pixelOutPointer to variable where information of the pixel existance will be stored (1 - pixel, 0 - no pixel)
Returns
true Information about pixel existance has been stored successfully
false Invalid values of the function parameters