|
TM STM32F4xx Libraries
v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
|
Library Functions. More...
Functions | |
| void | TM_ILI9341_Init (void) |
| Initializes ILI9341 LCD with LTDC peripheral It also initializes external SDRAM. More... | |
| void | TM_ILI9341_DrawPixel (uint16_t x, uint16_t y, uint32_t color) |
| Draws single pixel to LCD. More... | |
| void | TM_ILI9341_Fill (uint32_t color) |
| Fills entire LCD with color. More... | |
| void | TM_ILI9341_Rotate (TM_ILI9341_Orientation_t orientation) |
| Rotates LCD to specific orientation. More... | |
| void | TM_ILI9341_Putc (uint16_t x, uint16_t y, char c, TM_FontDef_t *font, uint32_t foreground, uint32_t background) |
| Puts single character to LCD. More... | |
| void | TM_ILI9341_Puts (uint16_t x, uint16_t y, char *str, TM_FontDef_t *font, uint32_t foreground, uint32_t background) |
| Puts string to LCD. More... | |
| void | TM_ILI9341_GetStringSize (char *str, TM_FontDef_t *font, uint16_t *width, uint16_t *height) |
| Gets width and height of box with text. More... | |
| void | TM_ILI9341_DrawLine (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint32_t color) |
| Draws line to LCD. More... | |
| void | TM_ILI9341_DrawRectangle (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint32_t color) |
| Draws rectangle on LCD. More... | |
| void | TM_ILI9341_DrawFilledRectangle (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint32_t color) |
| Draws filled rectangle on LCD. More... | |
| void | TM_ILI9341_DrawCircle (int16_t x0, int16_t y0, int16_t r, uint32_t color) |
| Draws circle on LCD. More... | |
| void | TM_ILI9341_DrawFilledCircle (int16_t x0, int16_t y0, int16_t r, uint32_t color) |
| Draws filled circle on LCD. More... | |
| void | TM_ILI9341_DisplayOn (void) |
| Enables display. More... | |
| void | TM_ILI9341_DisplayOff (void) |
| Disables display. More... | |
Library Functions.
| void TM_ILI9341_DisplayOff | ( | void | ) |
Disables display.
| None |
| None |
| void TM_ILI9341_DisplayOn | ( | void | ) |
Enables display.
| None |
| None |
| void TM_ILI9341_DrawCircle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | r, | ||
| uint32_t | color | ||
| ) |
Draws circle on LCD.
| x0 | X coordinate of center circle point |
| y0 | Y coordinate of center circle point |
| r | Circle radius |
| color | Circle color |
| None |
| void TM_ILI9341_DrawFilledCircle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | r, | ||
| uint32_t | color | ||
| ) |
Draws filled circle on LCD.
| x0 | X coordinate of center circle point |
| y0 | Y coordinate of center circle point |
| r | Circle radius |
| color | Circle color |
| None |
| void TM_ILI9341_DrawFilledRectangle | ( | uint16_t | x0, |
| uint16_t | y0, | ||
| uint16_t | x1, | ||
| uint16_t | y1, | ||
| uint32_t | color | ||
| ) |
Draws filled rectangle on LCD.
| x0 | X coordinate of top left point |
| y0 | Y coordinate of top left point |
| x1 | X coordinate of bottom right point |
| y1 | Y coordinate of bottom right point |
| color | Rectangle color |
| None |
| void TM_ILI9341_DrawLine | ( | uint16_t | x0, |
| uint16_t | y0, | ||
| uint16_t | x1, | ||
| uint16_t | y1, | ||
| uint32_t | color | ||
| ) |
Draws line to LCD.
| x0 | X coordinate of starting point |
| y0 | Y coordinate of starting point |
| x1 | X coordinate of ending point |
| y1 | Y coordinate of ending point |
| color | Line color |
| None |
| void TM_ILI9341_DrawPixel | ( | uint16_t | x, |
| uint16_t | y, | ||
| uint32_t | color | ||
| ) |
Draws single pixel to LCD.
| x | X position for pixel |
| y | Y position for pixel |
| color | Color of pixel |
| None |
| void TM_ILI9341_DrawRectangle | ( | uint16_t | x0, |
| uint16_t | y0, | ||
| uint16_t | x1, | ||
| uint16_t | y1, | ||
| uint32_t | color | ||
| ) |
Draws rectangle on LCD.
| x0 | X coordinate of top left point |
| y0 | Y coordinate of top left point |
| x1 | X coordinate of bottom right point |
| y1 | Y coordinate of bottom right point |
| color | Rectangle color |
| None |
| void TM_ILI9341_Fill | ( | uint32_t | color | ) |
Fills entire LCD with color.
| color | Color to be used in fill |
| None |
| void TM_ILI9341_GetStringSize | ( | char * | str, |
| TM_FontDef_t * | font, | ||
| uint16_t * | width, | ||
| uint16_t * | height | ||
| ) |
Gets width and height of box with text.
| *str | Pointer to first character |
| *font | Pointer to TM_FontDef_t used font |
| *width | Pointer to variable to store width |
| *height | Pointer to variable to store height |
| None |
| void TM_ILI9341_Init | ( | void | ) |
Initializes ILI9341 LCD with LTDC peripheral It also initializes external SDRAM.
| None |
| None |
| void TM_ILI9341_Putc | ( | uint16_t | x, |
| uint16_t | y, | ||
| char | c, | ||
| TM_FontDef_t * | font, | ||
| uint32_t | foreground, | ||
| uint32_t | background | ||
| ) |
Puts single character to LCD.
| x | X position of top left corner |
| y | Y position of top left corner |
| c | Character to be displayed |
| *font | Pointer to TM_FontDef_t used font |
| foreground | Color for char |
| background | Color for char background |
| None |
| void TM_ILI9341_Puts | ( | uint16_t | x, |
| uint16_t | y, | ||
| char * | str, | ||
| TM_FontDef_t * | font, | ||
| uint32_t | foreground, | ||
| uint32_t | background | ||
| ) |
Puts string to LCD.
| x | X position of top left corner of first character in string |
| y | Y position of top left corner of first character in string |
| *str | Pointer to first character |
| *font | Pointer to TM_FontDef_t used font |
| foreground | Color for string |
| background | Color for string background |
| None |
| void TM_ILI9341_Rotate | ( | TM_ILI9341_Orientation_t | orientation | ) |
Rotates LCD to specific orientation.
| orientation | LCD orientation. This parameter can be a value of TM_ILI9341_Orientation_t enumeration |
| None |