在12864液晶上显示倒计时时间 程序样例 /*********************************************************** 程序功能:在12864液晶上显示倒计时时间 ----------------------------------------------------------- 测试说明:观察液晶显示 ***********************************************************/ #include "msp430.h" #include "BoardConfig.h" #define SetTime(H,M,S) {second=S;minute=M;hour=H;hour0=H;}; typedef unsigned char uchar; typedef unsigned int uint; #define cyCS 0 //P3.0,片选信号 #define cySID 1 //P3.1,串行数据 #define cyCLK 2 //P3.2,同步时钟 #define cyPORT P3OUT #define cyDDR P3DIR /********************************************* *********************************************/ const uchar hang1[] = {"定时时间"}; const uchar hang2[] = {"确定"}; const uchar hang3[] = {"退出"}; const uchar hang4[] = {"时"}; const uchar hang5[] = {"分"}; const uchar hang6[] = ……