|
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
|
Library Functions. More...
Functions | |
| uint8_t | TM_SSD1306_Init (void) |
| Initializes SSD1306 LCD. More... | |
| void | TM_SSD1306_UpdateScreen (void) |
| Updates buffer from internal RAM to LCD. More... | |
| void | TM_SSD1306_ToggleInvert (void) |
| Toggles pixels invertion inside internal RAM. More... | |
| void | TM_SSD1306_Fill (SSD1306_COLOR_t Color) |
| Fills entire LCD with desired color. More... | |
| void | TM_SSD1306_DrawPixel (uint16_t x, uint16_t y, SSD1306_COLOR_t color) |
| Draws pixel at desired location. More... | |
| void | TM_SSD1306_GotoXY (uint16_t x, uint16_t y) |
| Sets cursor pointer to desired location for strings. More... | |
| char | TM_SSD1306_Putc (char ch, TM_FONT_t *Font, SSD1306_COLOR_t color) |
| Puts character to internal RAM. More... | |
| char | TM_SSD1306_Puts (char *str, TM_FONT_t *Font, SSD1306_COLOR_t color) |
| Puts string to internal RAM. More... | |
| void | TM_SSD1306_DrawLine (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, SSD1306_COLOR_t c) |
| Draws line on LCD. More... | |
| void | TM_SSD1306_DrawRectangle (uint16_t x, uint16_t y, uint16_t w, uint16_t h, SSD1306_COLOR_t c) |
| Draws rectangle on LCD. More... | |
| void | TM_SSD1306_DrawFilledRectangle (uint16_t x, uint16_t y, uint16_t w, uint16_t h, SSD1306_COLOR_t c) |
| Draws filled rectangle on LCD. More... | |
| void | TM_SSD1306_DrawTriangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3, SSD1306_COLOR_t color) |
| Draws triangle on LCD. More... | |
| void | TM_SSD1306_DrawCircle (int16_t x0, int16_t y0, int16_t r, SSD1306_COLOR_t c) |
| Draws circle to STM buffer. More... | |
| void | TM_SSD1306_DrawFilledCircle (int16_t x0, int16_t y0, int16_t r, SSD1306_COLOR_t c) |
| Draws filled circle to STM buffer. More... | |
Library Functions.
| void TM_SSD1306_DrawCircle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | r, | ||
| SSD1306_COLOR_t | c | ||
| ) |
Draws circle to STM buffer.
| x | X location for center of circle. Valid input is 0 to SSD1306_WIDTH - 1 |
| y | Y location for center of circle. Valid input is 0 to SSD1306_HEIGHT - 1 |
| r | Circle radius in units of pixels |
| c | Color to be used. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_DrawFilledCircle | ( | int16_t | x0, |
| int16_t | y0, | ||
| int16_t | r, | ||
| SSD1306_COLOR_t | c | ||
| ) |
Draws filled circle to STM buffer.
| x | X location for center of circle. Valid input is 0 to SSD1306_WIDTH - 1 |
| y | Y location for center of circle. Valid input is 0 to SSD1306_HEIGHT - 1 |
| r | Circle radius in units of pixels |
| c | Color to be used. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_DrawFilledRectangle | ( | uint16_t | x, |
| uint16_t | y, | ||
| uint16_t | w, | ||
| uint16_t | h, | ||
| SSD1306_COLOR_t | c | ||
| ) |
Draws filled rectangle on LCD.
| x | Top left X start point. Valid input is 0 to SSD1306_WIDTH - 1 |
| y | Top left Y start point. Valid input is 0 to SSD1306_HEIGHT - 1 |
| w | Rectangle width in units of pixels |
| h | Rectangle height in units of pixels |
| c | Color to be used. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_DrawLine | ( | uint16_t | x0, |
| uint16_t | y0, | ||
| uint16_t | x1, | ||
| uint16_t | y1, | ||
| SSD1306_COLOR_t | c | ||
| ) |
Draws line on LCD.
| x0 | Line X start point. Valid input is 0 to SSD1306_WIDTH - 1 |
| y0 | Line Y start point. Valid input is 0 to SSD1306_HEIGHT - 1 |
| x1 | Line X end point. Valid input is 0 to SSD1306_WIDTH - 1 |
| y1 | Line Y end point. Valid input is 0 to SSD1306_HEIGHT - 1 |
| c | Color to be used. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_DrawPixel | ( | uint16_t | x, |
| uint16_t | y, | ||
| SSD1306_COLOR_t | color | ||
| ) |
Draws pixel at desired location.
| x | X location. This parameter can be a value between 0 and SSD1306_WIDTH - 1 |
| y | Y location. This parameter can be a value between 0 and SSD1306_HEIGHT - 1 |
| color | Color to be used for screen fill. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_DrawRectangle | ( | uint16_t | x, |
| uint16_t | y, | ||
| uint16_t | w, | ||
| uint16_t | h, | ||
| SSD1306_COLOR_t | c | ||
| ) |
Draws rectangle on LCD.
| x | Top left X start point. Valid input is 0 to SSD1306_WIDTH - 1 |
| y | Top left Y start point. Valid input is 0 to SSD1306_HEIGHT - 1 |
| w | Rectangle width in units of pixels |
| h | Rectangle height in units of pixels |
| c | Color to be used. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_DrawTriangle | ( | uint16_t | x1, |
| uint16_t | y1, | ||
| uint16_t | x2, | ||
| uint16_t | y2, | ||
| uint16_t | x3, | ||
| uint16_t | y3, | ||
| SSD1306_COLOR_t | color | ||
| ) |
Draws triangle on LCD.
| x1 | First coordinate X location. Valid input is 0 to SSD1306_WIDTH - 1 |
| y1 | First coordinate Y location. Valid input is 0 to SSD1306_HEIGHT - 1 |
| x2 | Second coordinate X location. Valid input is 0 to SSD1306_WIDTH - 1 |
| y2 | Second coordinate Y location. Valid input is 0 to SSD1306_HEIGHT - 1 |
| x3 | Third coordinate X location. Valid input is 0 to SSD1306_WIDTH - 1 |
| y3 | Third coordinate Y location. Valid input is 0 to SSD1306_HEIGHT - 1 |
| c | Color to be used. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_Fill | ( | SSD1306_COLOR_t | Color | ) |
Fills entire LCD with desired color.
| Color | Color to be used for screen fill. This parameter can be a value of SSD1306_COLOR_t enumeration |
| None |
| void TM_SSD1306_GotoXY | ( | uint16_t | x, |
| uint16_t | y | ||
| ) |
Sets cursor pointer to desired location for strings.
| x | X location. This parameter can be a value between 0 and SSD1306_WIDTH - 1 |
| y | Y location. This parameter can be a value between 0 and SSD1306_HEIGHT - 1 |
| None |
| uint8_t TM_SSD1306_Init | ( | void | ) |
Initializes SSD1306 LCD.
| None |
| Initialization | status:
|
| char TM_SSD1306_Putc | ( | char | ch, |
| TM_FONT_t * | Font, | ||
| SSD1306_COLOR_t | color | ||
| ) |
Puts character to internal RAM.
| ch | Character to be written |
| *Font | Pointer to TM_FONT_t structure with used font |
| color | Color used for drawing. This parameter can be a value of SSD1306_COLOR_t enumeration |
| Character | written |
| char TM_SSD1306_Puts | ( | char * | str, |
| TM_FONT_t * | Font, | ||
| SSD1306_COLOR_t | color | ||
| ) |
Puts string to internal RAM.
| *str | String to be written |
| *Font | Pointer to TM_FONT_t structure with used font |
| color | Color used for drawing. This parameter can be a value of SSD1306_COLOR_t enumeration |
| Zero | on success or character value when function failed |
| void TM_SSD1306_ToggleInvert | ( | void | ) |
Toggles pixels invertion inside internal RAM.
| None |
| None |
| void TM_SSD1306_UpdateScreen | ( | void | ) |
Updates buffer from internal RAM to LCD.
| None |
| None |