/*------------------------------------------------------------------------------*/ /* Prorgam:3D7BWR_240X416_8253_Test */ /* Version:A0 Description: First version Date:2020-10-8 */ /* Author:Vick cheng */ /*------------------------------------------------------------------------------*/ /* Includes --------------------------------------------------------------------*/ /* Includes --------------------------------------------------------------------*/ //#include "msp430x22x4.h" #include "image.h" #include "msp430g2955.h" #include "waveinit_T2530.h" /* IO_Configuration--------------------------------------------------------------- */ #define SDA_H (P1OUT |=BIT7) // P1.7 #define SDA_L (P1OUT &=~BIT7) #define SCLK_H (P1OUT |=BIT6) // P1.6 #define SCLK_L (P1OUT &=~BIT6) #define nCS_H (P1OUT |=BIT5) // P1.5 #define nCS_L (P1OUT &=~BIT5) #define nDC_H (P1OUT |=BIT4) // P1.4 #define nDC_L (P1OUT &=~BIT4) #define nRST_H (P1OUT |=BIT3) // P1.3 #define nRST_L (P1OUT &=~BIT3) /* Display function---------------------------------------------------------------*/ #define PIC_BLACK 252 //Disply black #define PIC_WHITE 255 //Disply white #define PIC_A 1 //Disply char #define PIC_B 2 //Disply lebel #define PIC_HLINE 3 //Disply hline #define PIC_VLINE 4 //Disply vline #define PIC_R 5 //Disply rad #define PIC_0 6 //Disply rad #define PIC_1 7 #define PIC_2 8 #define PIC_3 9 #define PIC_4 10 #define PIC_5 11 #define PIC_6 12 #define PIC_C 15 /* MCU delay configuration ------------------------------------------------------*/ void DELAY_mS(int delaytime) // delaytime=1=1ms { int i,j; for(i=0;i