ST / BSP_DISCO_L496AG

Dependents:   DISCO_L496AG-LCD-prova_1 DISCO_L496AG-LCD-prova_2 DISCO_L496AG-LCD-demo DISCO_L496AG-SRAM-demo

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
Attention:

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file st7789h2.c.