Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more
Functions | |
| void | ST7789H2_Init (void) |
| Initialize the st7789h2 LCD Component. | |
| void | ST7789H2_SetOrientation (uint32_t orientation) |
| Set the Display Orientation. | |
| void | ST7789H2_DisplayOn (void) |
| Enables the Display. | |
| void | ST7789H2_DisplayOff (void) |
| Disables the Display. | |
| uint16_t | ST7789H2_GetLcdPixelWidth (void) |
| Get the LCD pixel Width. | |
| uint16_t | ST7789H2_GetLcdPixelHeight (void) |
| Get the LCD pixel Height. | |
| uint16_t | ST7789H2_ReadID (void) |
| Get the st7789h2 ID. | |
| void | ST7789H2_SetCursor (uint16_t Xpos, uint16_t Ypos) |
| Set Cursor position. | |
| void | ST7789H2_WritePixel (uint16_t Xpos, uint16_t Ypos, uint16_t RGBCode) |
| Write pixel. | |
| uint16_t | ST7789H2_ReadPixel (uint16_t Xpos, uint16_t Ypos) |
| Read pixel. | |
| void | ST7789H2_WriteReg (uint8_t Command, uint8_t *Parameters, uint8_t NbParameters) |
| Writes to the selected LCD register. | |
| uint8_t | ST7789H2_ReadReg (uint8_t Command) |
| Reads the selected LCD Register. | |
| void | ST7789H2_SetDisplayWindow (uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) |
| Sets a display window. | |
| void | ST7789H2_DrawHLine (uint16_t RGBCode, uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
| Draw vertical line. | |
| void | ST7789H2_DrawVLine (uint16_t RGBCode, uint16_t Xpos, uint16_t Ypos, uint16_t Length) |
| Draw vertical line. | |
| void | ST7789H2_DrawBitmap (uint16_t Xpos, uint16_t Ypos, uint8_t *pbmp) |
| Displays a bitmap picture. | |
| void | ST7789H2_DrawRGBImage (uint16_t Xpos, uint16_t Ypos, uint16_t Xsize, uint16_t Ysize, uint8_t *pdata) |
| Displays picture. | |
| static ST7789H2_Rgb888 | ST7789H2_ReadPixel_rgb888 (uint16_t Xpos, uint16_t Ypos) |
| Read pixel from LCD RAM in RGB888 format. | |
| static void | ST7789H2_DrawRGBHLine (uint16_t Xpos, uint16_t Ypos, uint16_t Xsize, uint8_t *pdata) |
| Displays a single picture line. | |
Function Documentation
| void ST7789H2_DisplayOff | ( | void | ) |
Disables the Display.
- Parameters:
-
None
- Return values:
-
None
Definition at line 323 of file st7789h2.c.
| void ST7789H2_DisplayOn | ( | void | ) |
Enables the Display.
- Parameters:
-
None
- Return values:
-
None
Definition at line 309 of file st7789h2.c.
| void ST7789H2_DrawBitmap | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint8_t * | pbmp | ||
| ) |
Displays a bitmap picture.
- Parameters:
-
BmpAddress,: Bmp picture address. Xpos,: Bmp X position in the LCD Ypos,: Bmp Y position in the LCD
- Return values:
-
None
Definition at line 579 of file st7789h2.c.
| void ST7789H2_DrawHLine | ( | uint16_t | RGBCode, |
| uint16_t | Xpos, | ||
| uint16_t | Ypos, | ||
| uint16_t | Length | ||
| ) |
Draw vertical line.
- Parameters:
-
RGBCode,: Specifies the RGB color in RGB565 format Xpos,: specifies the X position. Ypos,: specifies the Y position. Length,: specifies the Line length.
- Return values:
-
None
Definition at line 530 of file st7789h2.c.
| static void ST7789H2_DrawRGBHLine | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Xsize, | ||
| uint8_t * | pdata | ||
| ) | [static] |
Displays a single picture line.
- Parameters:
-
pdata,: picture address. Xpos,: Image X position in the LCD Ypos,: Image Y position in the LCD Xsize,: Image X size in the LCD
- Return values:
-
None
Definition at line 686 of file st7789h2.c.
| void ST7789H2_DrawRGBImage | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Xsize, | ||
| uint16_t | Ysize, | ||
| uint8_t * | pdata | ||
| ) |
Displays picture.
- Parameters:
-
pdata,: picture address. Xpos,: Image X position in the LCD Ypos,: Image Y position in the LCD Xsize,: Image X size in the LCD Ysize,: Image Y size in the LCD
- Return values:
-
None
Definition at line 616 of file st7789h2.c.
| void ST7789H2_DrawVLine | ( | uint16_t | RGBCode, |
| uint16_t | Xpos, | ||
| uint16_t | Ypos, | ||
| uint16_t | Length | ||
| ) |
Draw vertical line.
- Parameters:
-
RGBCode,: Specifies the RGB color Xpos,: specifies the X position. Ypos,: specifies the Y position. Length,: specifies the Line length.
- Return values:
-
None
Definition at line 555 of file st7789h2.c.
| uint16_t ST7789H2_GetLcdPixelHeight | ( | void | ) |
Get the LCD pixel Height.
- Parameters:
-
None
- Return values:
-
The Lcd Pixel Height
Definition at line 350 of file st7789h2.c.
| uint16_t ST7789H2_GetLcdPixelWidth | ( | void | ) |
Get the LCD pixel Width.
- Parameters:
-
None
- Return values:
-
The Lcd Pixel Width
Definition at line 340 of file st7789h2.c.
| void ST7789H2_Init | ( | void | ) |
Initialize the st7789h2 LCD Component.
- Parameters:
-
None
- Return values:
-
None
Definition at line 132 of file st7789h2.c.
| uint16_t ST7789H2_ReadID | ( | void | ) |
Get the st7789h2 ID.
- Parameters:
-
None
- Return values:
-
The st7789h2 ID
Definition at line 360 of file st7789h2.c.
| uint16_t ST7789H2_ReadPixel | ( | uint16_t | Xpos, |
| uint16_t | Ypos | ||
| ) |
Read pixel.
- Parameters:
-
Xpos,: specifies the X position. Ypos,: specifies the Y position.
- Return values:
-
The RGB pixel color in RGB565 format
Definition at line 415 of file st7789h2.c.
| static ST7789H2_Rgb888 ST7789H2_ReadPixel_rgb888 | ( | uint16_t | Xpos, |
| uint16_t | Ypos | ||
| ) | [static] |
Read pixel from LCD RAM in RGB888 format.
- Parameters:
-
Xpos,: specifies the X position. Ypos,: specifies the Y position.
- Return values:
-
Each RGB pixel color components in a structure
Definition at line 643 of file st7789h2.c.
| uint8_t ST7789H2_ReadReg | ( | uint8_t | Command ) |
Reads the selected LCD Register.
- Parameters:
-
Command,: command value (or register address as named in st7789h2 doc).
- Return values:
-
Register Value.
Definition at line 463 of file st7789h2.c.
| void ST7789H2_SetCursor | ( | uint16_t | Xpos, |
| uint16_t | Ypos | ||
| ) |
Set Cursor position.
- Parameters:
-
Xpos,: specifies the X position. Ypos,: specifies the Y position.
- Return values:
-
None
Definition at line 373 of file st7789h2.c.
| void ST7789H2_SetDisplayWindow | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | Width, | ||
| uint16_t | Height | ||
| ) |
Sets a display window.
- Parameters:
-
Xpos,: specifies the X bottom left position. Ypos,: specifies the Y bottom left position. Height,: display window height. Width,: display window width.
- Return values:
-
None
Definition at line 483 of file st7789h2.c.
| void ST7789H2_SetOrientation | ( | uint32_t | orientation ) |
Set the Display Orientation.
- Parameters:
-
orientation,: ST7789H2_ORIENTATION_PORTRAIT, ST7789H2_ORIENTATION_LANDSCAPE or ST7789H2_ORIENTATION_LANDSCAPE_ROT180
- Return values:
-
None
Definition at line 267 of file st7789h2.c.
| void ST7789H2_WritePixel | ( | uint16_t | Xpos, |
| uint16_t | Ypos, | ||
| uint16_t | RGBCode | ||
| ) |
Write pixel.
- Parameters:
-
Xpos,: specifies the X position. Ypos,: specifies the Y position. RGBCode,: the RGB pixel color in RGB565 format
- Return values:
-
None
Definition at line 397 of file st7789h2.c.
| void ST7789H2_WriteReg | ( | uint8_t | Command, |
| uint8_t * | Parameters, | ||
| uint8_t | NbParameters | ||
| ) |
Writes to the selected LCD register.
- Parameters:
-
Command,: command value (or register address as named in st7789h2 doc). Parameters,: pointer on parameters value (if command uses one or several parameters). NbParameters,: number of command parameters (0 if no parameter)
- Return values:
-
None
Definition at line 444 of file st7789h2.c.
Generated on Tue Jul 12 2022 13:54:38 by
1.7.2