ST7565R display controller driver.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
#include <compiler.h>
#include <sysclk.h>
#include <ioport.h>
#include <status_codes.h>
#include <delay.h>
#include "conf_st7565r.h"
#include <usart_spi.h>
Functions | |
LCD controller write and read functions | |
static void | st7565r_write_command (uint8_t command) |
Writes a command to the display controller. More... | |
static void | st7565r_write_data (uint8_t data) |
Write data to the display controller. More... | |
static uint8_t | st7565r_read_data (void) |
Read data from the controller. More... | |
static uint8_t | st7565r_get_status (void) |
Read status from the controller. More... | |
LCD Controller reset | |
static void | st7565r_soft_reset (void) |
Perform a soft reset of the LCD controller. More... | |
static void | st7565r_hard_reset (void) |
Perform a hard reset of the LCD controller. More... | |
Sleep control | |
static void | st7565r_sleep_enable (void) |
Enable the LCD sleep mode. More... | |
static void | st7565r_sleep_disable (void) |
Disable the LCD sleep mode. More... | |
Address setup for the LCD | |
static void | st7565r_set_page_address (uint8_t address) |
Set current page in display RAM. More... | |
static void | st7565r_set_column_address (uint8_t address) |
Set current column in display RAM. More... | |
static void | st7565r_set_display_start_line_address (uint8_t address) |
Set the display start draw line address. More... | |
Display hardware control | |
static void | st7565r_display_on (void) |
Turn the LCD display on. More... | |
static void | st7565r_display_off (void) |
Turn the LCD display off. More... | |
static void | st7565r_set_all_pixels (bool pixels_on) |
Sets all LCD pixels on. More... | |
static uint8_t | st7565r_set_contrast (uint8_t contrast) |
Set the LCD contrast level. More... | |
static void | st7565r_display_invert_enable (void) |
Invert all pixels on the device. More... | |
static void | st7565r_display_invert_disable (void) |
Disable invert of all pixels on the device. More... | |
Initialization | |
void | st7565r_init (void) |
Initialize the LCD controller. More... | |