MSP430F2013 (MSP430F2012) 와 HT1621 LCD 드라이버가 실장되어사용자가 편리하게 세그먼트 LCD를 제어 할 수 있습니다. · MSP430F2013 (MSP430F2012) · HT1621-driven LCD panel#define cs PBout(10) #define wr PBout(9) #define dat PBout(8)#define led PDout(2)#define BIAS 0x29#define SYSEN 0x01#define LCDOFF 0x02#define LCDON 0x03#define RC256 0x18int main(void){ uchar a[20];a[0]=0xff; a[1]=0xff; a[2]=0xff; a[3]=0xff; a[4]=0xff; a[5]=0xff; a[6]=0xff; a[7]=0xff;a[8]=0xff; a[9]=0xff; a[10]=0xff; a[11]=0xff; a[12]=0xff; a[13]=0xff; a[14]=0xff; a[15]=0xff; a[16]=0xff; /**********************************************/// dp c b a--d e g f// 0 0 0 0--0 0 0 0/**********************************************/Stm32_Clock_Init(9); //delay_init(72); //LED_Init(); // LED 포트 초기화 init_port(); ////SendCmd(RC256); // RCSendCmd(BIAS); // 바이어스 설정SendCmd(SYSEN); // SendCmd(LCDON); //Write_1621(0x09,0x01); //WriteAll_1621(0,a,8); // 실제 데이터 출력 8개 while(1) { LED0=0; LED1=1; delay_ms(300); LED0=1; LED1=0; delay_ms(300); } }