STM8S/A Standard Peripherals Firmware Library
|
This file contains all the functions prototypes for the Dot matrix LCD firmware driver. More...
#include "stm8s_eval.h"
Go to the source code of this file.
Defines | |
#define | _delay_ delay |
#define | COMMAND_TYPE ((uint8_t)0xF8) |
#define | DATA_TYPE ((uint8_t)0xFA) |
#define | DISPLAY_CLR ((uint8_t)0x01) |
#define | DISPLAY_OFF ((uint8_t)0x08) |
#define | DISPLAY_ON ((uint8_t)0x0C) |
#define | ENTRY_MODE_SET_INC ((uint8_t)0x06) |
#define | LCD_BACKLIGHT_PIN GPIO_PIN_4 |
#define | LCD_BACKLIGHT_PORT GPIOH |
#define | LCD_LINE1 ((uint8_t)0x80) |
#define | LCD_LINE2 ((uint8_t)0x90) |
#define | LCD_LINE_MAX_CHAR ((uint8_t)15) |
#define | LCD_NCS_GPIO_PORT GPIOF |
#define | LCD_NCS_HIGH() GPIO_WriteHigh(LCD_NCS_GPIO_PORT, LCD_NCS_PIN) |
Select LCD : ChipSelect pin high : LCD enabled. | |
#define | LCD_NCS_LOW() GPIO_WriteLow(LCD_NCS_GPIO_PORT, LCD_NCS_PIN) |
Deselect LCD: ChipSelect pin low : LCD disabled. | |
#define | LCD_NCS_PIN GPIO_PIN_0 |
#define | LCD_SPI SPI |
Defines for the SPI and GPIO pins used to drive the SPI Flash. | |
#define | LCD_SPI_CLK CLK_PERIPHERAL_SPI |
#define | LCD_SPI_GPIO_PORT GPIOC |
#define | LCD_SPI_MISO_PIN GPIO_PIN_7 |
#define | LCD_SPI_MOSI_PIN GPIO_PIN_6 |
#define | LCD_SPI_SCK_PIN GPIO_PIN_5 |
#define | SET_EXTENDED_INST ((uint8_t)0x34) |
#define | SET_GRAPHIC_MODE ((uint8_t)0x36) |
#define | SET_TEXT_MODE ((uint8_t)0x30) |
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. |
Detailed Description
This file contains all the functions prototypes for the Dot matrix LCD firmware driver.
- Author:
- MCD Application Team
- Version:
- V1.0.1
- Date:
- 30-September-2014 Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm8s_eval_lcd.h.