STM8S/A Standard Peripherals Firmware Library: STM8S_EVAL_LCD_Private_Functions

STM8S/A

STM8S/A Standard Peripherals Firmware Library
STM8S_EVAL_LCD_Private_Functions

Functions

void LCD_BacklightCmd (FunctionalState NewState)
 Enable or Disable the LCD backlight.
void LCD_Clear (void)
 Clear the LCD.
void LCD_DisplayLogo (uint8_t address)
 Display ST logo.
void LCD_Print (uint8_t *ptr)
 Display a string from current position of the LCD cursor.
void LCD_RollString (uint8_t Line, uint8_t *ptr, uint16_t speed)
 Display a string in rolling mode.
void LCD_SendByte (uint8_t DataType, uint8_t DataToSend)
 Send a byte to LCD.
void LCD_SetCursorPos (uint8_t Line, uint8_t Offset)
 Set the LCD cursor to the specified location.
void STM8S_EVAL_LCD_Init (void)
 Initialize the LCD.

Function Documentation

void LCD_BacklightCmd ( FunctionalState  NewState)

Enable or Disable the LCD backlight.

Parameters:
NewStateBacklight state
Return values:
None

Definition at line 192 of file stm8s_eval_lcd.c.

References DISABLE, GPIO_WriteHigh(), GPIO_WriteLow(), LCD_BACKLIGHT_PIN, and LCD_BACKLIGHT_PORT.

void LCD_Clear ( void  )

Clear the LCD.

Parameters:
None
Return values:
None

Definition at line 245 of file stm8s_eval_lcd.c.

References _delay_, COMMAND_TYPE, DISPLAY_CLR, and LCD_SendByte().

Referenced by LCD_Config(), and main().

void LCD_DisplayLogo ( uint8_t  address)

Display ST logo.

Parameters:
address: Display address (LINE1:0x80-0x87 and LINE2:0x90-0x97)
Return values:
None

Definition at line 330 of file stm8s_eval_lcd.c.

References LCD_DisplayCGRAM0(), LCD_DisplayCGRAM1(), S_CGRAM, and T_CGRAM.

Referenced by main(), and PrintLogo().

void LCD_Print ( uint8_t ptr)

Display a string from current position of the LCD cursor.

Parameters:
ptr: Pointer to the string to display
Return values:
None

Definition at line 259 of file stm8s_eval_lcd.c.

References __IO, DATA_TYPE, and LCD_SendByte().

Referenced by LCD_Config(), LCD_Display(), main(), PrintLogo(), and sEE_TIMEOUT_UserCallback().

void LCD_RollString ( uint8_t  Line,
uint8_t ptr,
uint16_t  speed 
)

Display a string in rolling mode.

Parameters:
Line: line used for displaying the text (LCD_LINE1 or LCD_LINE2)
ptr: Pointer to the text to display
speed: Rolling speed
Return values:
None

Definition at line 279 of file stm8s_eval_lcd.c.

References _delay_, COMMAND_TYPE, DATA_TYPE, LCD_LINE_MAX_CHAR, and LCD_SendByte().

void LCD_SendByte ( uint8_t  DataType,
uint8_t  DataToSend 
)

Send a byte to LCD.

Parameters:
DataTypeType of Data to be sent
DataToSendData to be sent
Return values:
None

Definition at line 221 of file stm8s_eval_lcd.c.

References _delay_, LCD_NCS_HIGH, LCD_NCS_LOW, and LCD_SPISendByte().

Referenced by LCD_Clear(), LCD_DisplayCGRAM0(), LCD_DisplayCGRAM1(), LCD_Print(), LCD_RollString(), LCD_SetCursorPos(), and STM8S_EVAL_LCD_Init().

void LCD_SetCursorPos ( uint8_t  Line,
uint8_t  Offset 
)

Set the LCD cursor to the specified location.

Parameters:
Line: line where the cursor will be set (LCD_LINE1 or LCD_LINE2)
Offset: is the position offset (only even position are supported)
Return values:
None

Definition at line 210 of file stm8s_eval_lcd.c.

References COMMAND_TYPE, and LCD_SendByte().

Referenced by LCD_Config(), LCD_Display(), main(), PrintLogo(), and sEE_TIMEOUT_UserCallback().

STM8 Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM8 8-bit Microcontrollers platform visit www.st.com