This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/MSP-EXP430G2:高、显示16x2和430g2553

Guru**** 3038620 points

Other Parts Discussed in Thread: MSP430G2553

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/910729/ccs-msp-exp430g2-hi-display-16x2-with-430g2553

器件型号:MSP-EXP430G2
主题中讨论的其他器件:MSP430G2553、

工具/软件:Code Composer Studio

您好!

抱歉、我的英语不是很好。

我要将显示屏 LCD 16x2连接到我的 MSP-exp430g2、电路板上的 MSP430G2553。

其中、我对库进行了擦示

它会生成此错误:


****为项目显示430g2553构建配置调试****

"C:\\ti\\ccs930\\ccs\\utils\bin\\gmake"-k -j 8 all -O
 
编译文件:"../main.c"
调用:MSP430编译器
"c:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_18.12.4.LTS/bin/cl430 -vmsp -use_hw_mpy=none --include_path="C:/ti/ccs930/ccs/ccs_base/msp430/include --include_path="C:/Users/Tonio/Desktop/texas instruments/430g2/display 430g2553"--include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_18.12.4.LTS/include --advice:power-define=all --define=_msp430g2553_-display_pred=main_supertag_driag="-inature=main_supertag_driag_supertination="-supdate=-main.us_supdate=-supdate=-prob&board_supdate=-prob_supdate=-main.us_supdate=-prob_supdate=-ination_daint_supdate=-ination_da  
 
>>编译失败
subdir_rules.mk:9:目标'main.obj'的配方失败
"./main.c"、第9行:致命错误#1965:无法打开源文件"LquidCrystal .h"
1在编译"./main.c"时检测到灾难性错误。
编译已终止。
gmake:***[main.obj]错误1.
gmake:目标"全部"不会由于错误而重新生成。

****构建完成****

----------------------------------------------------

这是要启动的代码

#include 
#define RS 2
#define EN 3
#define D4 4
#define D5
#define D6
#define D7

#include //默认情况下,此库与 IDE
LiquidCrystal LCD (RS、EN、D4、D5、D6、 d7);//让库知道我们是如何连接 LCD

int main (void)
{
lcd.begin(16,2);//我们使用的是16*2 LCD 显示屏
lcd.setCursor (0、0);//将光标放在第一行第一列
lcd.print ("欢迎");//显示介绍消息
lcd.setCursor(0、1);//将光标设置为第一列第2行
lcd.print ("我是 Antonio");//显示简介消息

延迟(2000);//等待显示以显示信息
lcd.clear();//然后将
其清除返回0;
}

----------------------------------------

谢谢你

孩子的问候