📄 atml_lcd.c
字号:
// $Id: atml_Lcd.c,v 1.3 2006/10/18 18:15:12 tprescott Exp $
/*****************************************************
Project : atml_LCD.c
Date : 9/08/2006
Author : Toby Prescott
Company : Atmel
Comments: AVR Studio GCC
Revisions:
v1.0 - Started for CodeVision
v2.1 - 1/19/06 Changed driver completely to
make drawing easier
v2.2 - 3/8/06 Added Flash string processing
v2.6 - 9/8/06 Clean for WinAVR
*****************************************************/
/* modified from shareware thanks to:
Michael J. Karas
Carousel Design Solutions
4217 Grimes Ave South
Edina MN 55416
(952) 929-7537
****************************************************/
#include "atml_Lcd.h"
// Declare your global variables here
unsigned char brightPercent = 10;
unsigned char brightVal EEMEM = 10;
unsigned char contrastVal EEMEM = ELECTRONIC_VOLUME_INIT;
unsigned char reverseState EEMEM = 1;
unsigned char upDate = 0;
/* pixel level bit masks for display */
/* this array is setup to map the order */
/* of bits in a byte to the vertical order */
/* of bits at the LCD controller */
const unsigned char l_mask_array[8] =
{0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
/* the LCD display image memory */
/* buffer arranged so page memory is sequential in RAM */
unsigned char l_display_array[Y_BYTES][X_BYTES];
// *******************************************************************************
// This performs all of the necessary initialization of the SED-1565 controller
// inside the Optrex display.
// Usage Examples:
// Init_Display();
// *******************************************************************************
void lcd_Init_Display(void)
{
/* When the RES input comes to the 揕
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -