- 1、本文档共21页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
硬件综合课程设计 实验日志
指导教师 实验时间: 2014年12月12日
学院 计算机学院 专业 信息安全
班级 0441103 学号 2011211774 姓名 张轶 实验室 信科402
实验题目:
智能终端----计算器程序
实验目的:
该课程设计的目的主要是锻炼学生利用已学习的各种语言及计算机综合知识来设计一个与具体类IT产品相关的一个硬件、软件综合系统,并在其系统上开发一定的应用程序,实际调试运行通过,达到提高实际动手能力的作用,尤其是软硬结合的能力。
实验要求:
任务:利用键盘输入数字及运算符,在LCD屏幕上显示计算结果。
要求:
1)熟悉开发板环境;
2)熟悉LCD驱动原理,键盘驱动原理;
3)设置各个按键,使其代表一定的数字及运算符,实现加减乘除运算。
主要代码:
布局
RelativeLayout xmlns:android=/apk/res/android
xmlns:tools=/tools
android:layout_width=match_parent
android:layout_height=match_parent
android:paddingBottom=@dimen/activity_vertical_margin
android:paddingLeft=@dimen/activity_horizontal_margin
android:paddingRight=@dimen/activity_horizontal_margin
android:paddingTop=@dimen/activity_vertical_margin
tools:context=.MainActivity
EditText
android:text=TextView
android:id=@+id/textView1
android:textSize=25sp
android:textColor=#000000
android:layout_gravity=center
android:gravity=left
android:cursorVisible=false
android:editable = false
android:layout_height=wrap_content
android:layout_width=fill_parent
android:layout_marginLeft=4dip
android:layout_marginRight=4dip
android:layout_marginTop=4dip android:layout_weight=1.5
/EditText
TableLayout
android:id=@+id/tablelayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_margin=4dip android:layout_weight=10
LinearLayout
android:id=@+id/linearlayout02
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_weight=1
Button
android:layout_width=50dip
android:layout_height=fill_parent
android:layout_weight=1
android:textSize=25sp android:id=@+id/buttonc android:text=@string/shan
/Button
文档评论(0)