WILLY BAYOT / stm32_adafruit

Dependents:   TDEMNucleo

Embed: (wiki syntax)

« Back to documentation index

ST7735_Private_Functions

ST7735_Private_Functions
[ST7735]

Functions

void st7735_Init (void)
 Initialize the ST7735 LCD Component.
void st7735_DisplayOn (void)
 Enables the Display.
void st7735_DisplayOff (void)
 Disables the Display.
void st7735_SetCursor (uint16_t Xpos, uint16_t Ypos)
 Sets Cursor position.
void st7735_WritePixel (uint16_t Xpos, uint16_t Ypos, uint16_t RGB_Code)
 Writes pixel.
void st7735_WriteReg (uint8_t LCDReg, uint8_t LCDRegValue)
 Writes to the selected LCD register.
void st7735_DrawHLine (uint16_t RGB_Code, uint16_t Xpos, uint16_t Ypos, uint16_t Length)
 Draws horizontal line.
void st7735_DrawVLine (uint16_t RGB_Code, uint16_t Xpos, uint16_t Ypos, uint16_t Length)
 Draws vertical line.
uint16_t st7735_GetLcdPixelWidth (void)
 Gets the LCD pixel Width.
uint16_t st7735_GetLcdPixelHeight (void)
 Gets the LCD pixel Height.

Function Documentation

void st7735_DisplayOff ( void   )

Disables the Display.

Parameters:
None
Return values:
None

Definition at line 241 of file st7735.c.

void st7735_DisplayOn ( void   )

Enables the Display.

Parameters:
None
Return values:
None

Definition at line 226 of file st7735.c.

void st7735_DrawHLine ( uint16_t  RGB_Code,
uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  Length 
)

Draws horizontal 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 311 of file st7735.c.

void st7735_DrawVLine ( uint16_t  RGB_Code,
uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  Length 
)

Draws 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 331 of file st7735.c.

uint16_t st7735_GetLcdPixelHeight ( void   )

Gets the LCD pixel Height.

Parameters:
None
Return values:
TheLcd Pixel Height

Definition at line 357 of file st7735.c.

uint16_t st7735_GetLcdPixelWidth ( void   )

Gets the LCD pixel Width.

Parameters:
None
Return values:
TheLcd Pixel Width

Definition at line 347 of file st7735.c.

void st7735_Init ( void   )

Initialize the ST7735 LCD Component.

Parameters:
None
Return values:
None

Definition at line 123 of file st7735.c.

void st7735_SetCursor ( uint16_t  Xpos,
uint16_t  Ypos 
)

Sets Cursor position.

Parameters:
Xpos,:specifies the X position.
Ypos,:specifies the Y position.
Return values:
None

Definition at line 257 of file st7735.c.

void st7735_WritePixel ( uint16_t  Xpos,
uint16_t  Ypos,
uint16_t  RGB_Code 
)

Writes pixel.

Parameters:
Xpos,:specifies the X position.
Ypos,:specifies the Y position.
RGBCode,:the RGB pixel color
Return values:
None

Definition at line 275 of file st7735.c.

void st7735_WriteReg ( uint8_t  LCDReg,
uint8_t  LCDRegValue 
)

Writes to the selected LCD register.

Parameters:
LCDReg,:Address of the selected register.
LCDRegValue,:value to write to the selected register.
Return values:
None

Definition at line 296 of file st7735.c.