Contains the BSP driver for the DISCO_F413ZH board.

Dependents:   DISCO_F413ZH-LCD-demo DISCO_F413ZH-touch-screen-demo DISCO_F413ZH-SD-demo DISCO_F413ZH-PSRAM-demo ... more

Embed: (wiki syntax)

« Back to documentation index

st7789h2.c File Reference

st7789h2.c File Reference

This file includes the LCD driver for st7789h2 LCD. More...

Go to the source code of this file.

Functions

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.
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.

Detailed Description

This file includes the LCD driver for st7789h2 LCD.

Author:
MCD Application Team
Version:
V1.1.1
Date:
29-December-2016
Attention:

© COPYRIGHT(c) 2016 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file st7789h2.c.