TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle
TM_LCD_GRAPHIC_Functions

Library Functions. More...

Functions

TM_LCD_Result_t TM_LCD_DrawPixel (uint16_t X, uint16_t Y, uint32_t color)
 Draws single pixel to LCD. More...
 
uint32_t TM_LCD_GetPixel (uint16_t X, uint16_t Y)
 Gets pixel index at specific coordinate. More...
 
TM_LCD_Result_t TM_LCD_DrawLine (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint32_t color)
 Draws line between 2 coordinates. More...
 
TM_LCD_Result_t TM_LCD_DrawRectangle (uint16_t x0, uint16_t y0, uint16_t Width, uint16_t Height, uint32_t color)
 Draws rectangle on LCD. More...
 
TM_LCD_Result_t TM_LCD_DrawFilledRectangle (uint16_t x0, uint16_t y0, uint16_t Width, uint16_t Height, uint32_t color)
 Draws filled rectangle on LCD. More...
 
TM_LCD_Result_t TM_LCD_DrawRoundedRectangle (uint16_t x0, uint16_t y0, uint16_t Width, uint16_t Height, uint16_t r, uint32_t color)
 Draws rounded rectangle on LCD. More...
 
TM_LCD_Result_t TM_LCD_DrawFilledRoundedRectangle (uint16_t x0, uint16_t y0, uint16_t Width, uint16_t Height, uint16_t r, uint32_t color)
 Draws filled rounded rectangle on LCD. More...
 
TM_LCD_Result_t TM_LCD_DrawCircle (int16_t x0, int16_t y0, int16_t r, uint32_t color)
 Draws circle on LCD. More...
 
TM_LCD_Result_t TM_LCD_DrawFilledCircle (int16_t x0, int16_t y0, int16_t r, uint32_t color)
 Draws filled circle on LCD. More...
 

Detailed Description

Library Functions.

Function Documentation

TM_LCD_Result_t TM_LCD_DrawCircle ( int16_t  x0,
int16_t  y0,
int16_t  r,
uint32_t  color 
)

Draws circle on LCD.

Parameters
x0X coordinate of circle's center location
y0Y coordinate of circle's center location
rRadius in unit of pixels
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawFilledCircle ( int16_t  x0,
int16_t  y0,
int16_t  r,
uint32_t  color 
)

Draws filled circle on LCD.

Parameters
x0X coordinate of circle's center location
y0Y coordinate of circle's center location
rRadius in unit of pixels
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawFilledRectangle ( uint16_t  x0,
uint16_t  y0,
uint16_t  Width,
uint16_t  Height,
uint32_t  color 
)

Draws filled rectangle on LCD.

Parameters
x0Top left X location
y0Top left Y location
WidthRectangle width in unit of pixels
HeightRectangle height in unit of pixels
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawFilledRoundedRectangle ( uint16_t  x0,
uint16_t  y0,
uint16_t  Width,
uint16_t  Height,
uint16_t  r,
uint32_t  color 
)

Draws filled rounded rectangle on LCD.

Parameters
x0Top left X location
y0Top left Y location
WidthRectangle width in unit of pixels
HeightRectangle height in unit of pixels
rRadius in unit of pixels in each corner
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawLine ( uint16_t  x0,
uint16_t  y0,
uint16_t  x1,
uint16_t  y1,
uint32_t  color 
)

Draws line between 2 coordinates.

Parameters
x0First point X location
y0First point Y location
x1Second point X location
y1Second point Y location
colorColor index for line in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawPixel ( uint16_t  X,
uint16_t  Y,
uint32_t  color 
)

Draws single pixel to LCD.

Parameters
XX coordinate for pixel
YY coordinate for pixel
colorColor index in RGB565 mode
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawRectangle ( uint16_t  x0,
uint16_t  y0,
uint16_t  Width,
uint16_t  Height,
uint32_t  color 
)

Draws rectangle on LCD.

Parameters
x0Top left X location
y0Top left Y location
WidthRectangle width in unit of pixels
HeightRectangle height in unit of pixels
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
TM_LCD_Result_t TM_LCD_DrawRoundedRectangle ( uint16_t  x0,
uint16_t  y0,
uint16_t  Width,
uint16_t  Height,
uint16_t  r,
uint32_t  color 
)

Draws rounded rectangle on LCD.

Parameters
x0Top left X location
y0Top left Y location
WidthRectangle width in unit of pixels
HeightRectangle height in unit of pixels
rRadius in unit of pixels in each corner
colorColor index in RGB565 format
Return values
Memberof TM_LCD_Result_t enumeration
uint32_t TM_LCD_GetPixel ( uint16_t  X,
uint16_t  Y 
)

Gets pixel index at specific coordinate.

Parameters
XX coordinate for pixel
YY coordinate for pixel
Return values
Pixelindex in RGB565 format