Download CodeVisionAVR User Manual

Transcript
CodeVisionAVR
/* default initialization values */
/* default value for LCD bias */
#define ST7565_DEFAULT_LCD_BIAS ST7565_LCD_BIAS_LOW
/* default value for reverse_x */
#define ST7565_DEFAULT_REVX ST7565_REVX_NORM
/* default value for rev132_x0,
effective only when reverse_x=1 (ST7565_REVX_REV) */
#define ST7565_DEFAULT_REV132_X0 ST7565_REV132_X0NC
/* default value for reverse_y */
#define ST7565_DEFAULT_REVY ST7565_REVY_NORM
/* default V5 voltage regulator internal resistor ratio */
#define ST7565_DEFAULT_VOLT_REG_V5 6
/* default LCD driving mode */
#define ST7565_DEFAULT_DRIVING_MODE ST7565_DRIVING_MODE1
/* default contrast */
#define ST7565_DEFAULT_CONTRAST 7
The detailed description of the above mentioned initialization parameters can be found in the ST7565
datasheet.
Notes:
• The glcd_st7565.h header file is automatically #included when the main glcd.h header file is
#included. Therefore there is no need to explicitly #include glcd_st7565.h.
• The ..\EXAMPLES\Graphic LCD\ST7565 directory contains fully functional code samples that
may be used as references for ST7565 initialization and usage.
© 1998-2012 HP InfoTech S.R.L.
Page 259