GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
ST7565R.h File Reference

Constants relating to ST7565R LCD controller. More...

Go to the source code of this file.

Macros

#define ST7565R_COLUMN_ADDRESS_SET_LOWER   0x00
 
#define ST7565R_COLUMN_ADDRESS_SET_UPPER   0x10
 
#define ST7565R_DISPLAY_ALL_ON   0b10100101
 
#define ST7565R_DISPLAY_NORMAL   0b10100100
 
#define ST7565R_DISPLAY_OFF   0b10101110
 
#define ST7565R_DISPLAY_ON   0b10101111
 
#define ST7565R_NORMAL   0b10100000
 
#define ST7565R_PAGE_ADDRESS_SET   0b10110000
 
#define ST7565R_RESET   0b11100010
 
#define ST7565R_REVERSE   0b10100001
 
#define ST7565R_SET_START_LINE   (1<<6)
 

Functions

void glcd_all_on (void)
 All display points on (native) More...
 
void glcd_clear_now (void)
 Clear the display immediately, does not buffer. More...
 
void glcd_normal (void)
 Set to normal mode. More...
 
void glcd_pattern (void)
 Show a black and white line pattern on the display. More...
 
void glcd_set_column_lower (uint8_t addr)
 
void glcd_set_column_upper (uint8_t addr)
 
void glcd_set_start_line (uint8_t addr)
 Set start line/page. More...
 

Detailed Description

Constants relating to ST7565R LCD controller.

Author
Andy Gock

Constants and functions specific to ST7565R. Tested with Newhaven Display model NHD-C12864WC-FSW-FBW-3V3-M

Todo:
Need to move functions to be controller independent

Definition in file ST7565R.h.

Macro Definition Documentation

#define ST7565R_COLUMN_ADDRESS_SET_LOWER   0x00

Definition at line 48 of file ST7565R.h.

#define ST7565R_COLUMN_ADDRESS_SET_UPPER   0x10

Definition at line 49 of file ST7565R.h.

#define ST7565R_DISPLAY_ALL_ON   0b10100101

Definition at line 51 of file ST7565R.h.

#define ST7565R_DISPLAY_NORMAL   0b10100100

Definition at line 50 of file ST7565R.h.

#define ST7565R_DISPLAY_OFF   0b10101110

Definition at line 46 of file ST7565R.h.

#define ST7565R_DISPLAY_ON   0b10101111

Definition at line 45 of file ST7565R.h.

#define ST7565R_NORMAL   0b10100000

Definition at line 52 of file ST7565R.h.

#define ST7565R_PAGE_ADDRESS_SET   0b10110000

Definition at line 47 of file ST7565R.h.

#define ST7565R_RESET   0b11100010

Definition at line 54 of file ST7565R.h.

#define ST7565R_REVERSE   0b10100001

Definition at line 53 of file ST7565R.h.

#define ST7565R_SET_START_LINE   (1<<6)

Definition at line 55 of file ST7565R.h.

Function Documentation

void glcd_all_on ( void  )

All display points on (native)

void glcd_clear_now ( void  )

Clear the display immediately, does not buffer.

void glcd_normal ( void  )

Set to normal mode.

void glcd_pattern ( void  )

Show a black and white line pattern on the display.

void glcd_set_column_lower ( uint8_t  addr)
void glcd_set_column_upper ( uint8_t  addr)
void glcd_set_start_line ( uint8_t  addr)

Set start line/page.