⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 motorola 1.4" CSTN LCD test program. Drive IC: SSD17
💻 C
字号:

/*******************************************************************************
  main.C
  Copyright (c) InnoLux Corp. All rights reserved.
*******************************************************************************/
/*==============================================================================
Project Name:__________     Model Name  :__________    
Writer      :Venter.Lin		Data	:2003/10/16
IC:Solomon  SSD1700 Ver.1.0      
VDD:3.0 V	     		Display: 256 color and 4096 color(RGB 332 or RGB 444)
Display Mode:Normally White	             VCI:3.0 V                         
==============================================================================*/
/*=============================================================================
ANNOTATION:
% BauRate 19200 bits/s; 1 start bit; 8 transfered bits; 1 stop bit; without parity bit;  
% Writed for 8080 series and 68 series 8 bit tested ok
% This vrsion must cooperate with Inno_EE_Stn(PC Control Pannel)
% Oscillator Frequency 22.1184Mhz 

==============================================================================*/
#include <Define.h>

void main()
{   
   //Byte height=64,width=96;
   //How to caculate RGB value 
   //332  RRRGGGBB
   //444  RRRRGGGG BBBBRRRR GGGGBBBB
   //According to the RGB sequence we can count the desired value ,we show an example as below 
   //Red value in 332 ==>11100000b ==>0xE0;
   //Red value in 444 ==>11110000b 00001111b 00000000b ==>0xF0 0x0F 0x00;

   //P0=P1=P2=0; 
   Byte page=0,flag=0;
   DelayX1ms(1);         //wait fo power stable
   RW=0;  
   RESET=0;
   DelayX1ms(2);
   RESET=1; 
   DelayX1ms(1);
   
  
     initial(2);
	 while(1)
	  { 	  
	  New_Gray_ColorBar_16leavel_8b444(height,width);      
      DelayX1ms(1);
	  } 
}



























































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -