Go to the source code of this file.
Macros | |
| #define | ABS(x) ((x) > 0 ? (x) : -(x)) |
Functions | |
| void | ST7567_WriteData (uint8_t dat) |
| Write a single byte data to ST7567. | |
| void | ST7567_WriteSameData (uint8_t dat, uint32_t size) |
| void | ST7567_WriteCommand (uint8_t command) |
| Write a single byte command to ST7567. | |
| static void | ST7567_Transmit (const uint8_t *pDat, uint32_t size) |
| void | ST7567_Reset (void) |
| Hardware reset ST7567 LCD. | |
| void | ST7567_Init (void) |
| Initializes ST7567 LCD. | |
| void | ST7567_SetPowerSaveMode (HAL_State_t state) |
| Powersave mode control. | |
| void | ST7567_SetBackLightState (HAL_State_t state) |
| Turn ST7567 LCD backlight on or off. | |
| void | ST7567_SetContrast (uint8_t val) |
| Turn ST7567 LCD backlight off. | |
| void | ST7567_UpdateScreen (void) |
| Update LCD display with buffer changes. | |
| void | ST7567_ToggleInvert (void) |
| Toggles pixels invertion inside internal RAM. | |
| void | ST7567_Fill (uint8_t color) |
| Fills entire LCD with specified color. | |
| void | ST7567_DrawPixel (uint8_t x, uint8_t y, uint8_t color) |
| Draws pixel at desired location. | |
| void | ST7567_GotoXY (uint16_t x, uint16_t y) |
| Sets cursor pointer to desired location for strings. | |
| char | ST7567_Putc (char ch, FontDef_t *font, uint8_t color) |
| Puts character to internal RAM. | |
| char | ST7567_Puts (char *str, FontDef_t *Font, uint8_t color) |
| Puts string to internal RAM. | |
| void | ST7567_DrawLine (uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t c) |
| Draws line on LCD. | |
Variables | |
| __BIT | ST7567_colorInverted = RESET |
| uint8_t | ST7567_currentX = 0 |
| uint8_t | ST7567_currentY = 0 |
| static __XDATA uint8_t | ST7567_Buffer_all [ST7567_WIDTH *ST7567_PAGES] |
| static __CODE uint8_t | Font3x5 [] |
| static __CODE uint8_t | Font5x7 [] |
| __CODE FontDef_t | Font_3x5 = {3, 5, 1, 1, Font3x5} |
| __CODE FontDef_t | Font_5x7 = {5, 7, 1, 1, Font5x7} |
Draws line on LCD.
| x0 | Line X start point. Valid input is 0 to ST7567_WIDTH - 1 |
| y0 | Line Y start point. Valid input is 0 to ST7567_HEIGHT - 1 |
| x1 | Line X end point. Valid input is 0 to ST7567_WIDTH - 1 |
| y1 | Line Y end point. Valid input is 0 to ST7567_HEIGHT - 1 |
| c | Color to be used. This parameter can be a value of ST7567_COLOR_t enumeration |
| None |
Definition at line 257 of file st7567.c.
Draws pixel at desired location.
| x | X location. This parameter can be a value between 0 and ST7567_WIDTH - 1 |
| y | Y location. This parameter can be a value between 0 and ST7567_HEIGHT - 1 |
| color | Color to be used for screen fill. This parameter can be a value of ST7567_COLOR_t enumeration |
| None |
Definition at line 164 of file st7567.c.
| void ST7567_Fill | ( | uint8_t | Color | ) |
Fills entire LCD with specified color.
| Color | Color to be used for screen fill, ST7567_COLOR_FRONT or ST7567_COLOR_BACK |
| None |
Definition at line 158 of file st7567.c.
Sets cursor pointer to desired location for strings.
| x | X location. This parameter can be a value between 0 and ST7567_WIDTH - 1 |
| y | Y location. This parameter can be a value between 0 and ST7567_HEIGHT - 1 |
| None |
Definition at line 183 of file st7567.c.
| void ST7567_Init | ( | void | ) |
Initializes ST7567 LCD.
| None |
| None |
Definition at line 68 of file st7567.c.
Puts character to internal RAM.
| ch | Character to be written |
| *Font | Pointer to FontDef_t structure with used font |
| color | Color used for drawing. This parameter can be a value of ST7567_COLOR_t enumeration |
| Character | written |
Definition at line 190 of file st7567.c.
Puts string to internal RAM.
| *str | String to be written |
| *Font | Pointer to FontDef_t structure with used font |
| color | Color used for drawing. This parameter can be a value of ST7567_COLOR_t enumeration |
| Zero | on success or character value when function failed |
Definition at line 237 of file st7567.c.
| void ST7567_Reset | ( | void | ) |
Hardware reset ST7567 LCD.
| None |
| None |
| void ST7567_SetBackLightState | ( | HAL_State_t | state | ) |
| void ST7567_SetContrast | ( | uint8_t | val | ) |
| void ST7567_SetPowerSaveMode | ( | HAL_State_t | state | ) |
Powersave mode control.
| state | HAL_State_ON:powersave mode, HAL_State_OFF:work mode |
| None |
Definition at line 100 of file st7567.c.
| void ST7567_ToggleInvert | ( | void | ) |
Toggles pixels invertion inside internal RAM.
| None |
| None |
Definition at line 144 of file st7567.c.
| void ST7567_UpdateScreen | ( | void | ) |
Update LCD display with buffer changes.
| None |
| None |
Definition at line 132 of file st7567.c.
| void ST7567_WriteCommand | ( | uint8_t | command | ) |
Write a single byte command to ST7567.
| command | command |
| None |
Definition at line 44 of file st7567.c.
| void ST7567_WriteData | ( | uint8_t | dat | ) |
|
static |