|
发表于 2011-11-14 22:27:02
|
显示全部楼层
我的51初学故事+初学作品:有功能菜单的DS1302+1602表
I would encourage you to make a few modules out of this, so your life is easier in the future.
for example, you are dealing with two (or three) distinct devices and you can make a module that drives the lcd and another that drives the ds1302.
in the future, you can simply include the lcd source file in a project, and include the lcd header file in your user code. compile and you can then write to that lcd.
the purpose of programming is really so that you don't have to do it again in the future. That way, you build on your prior investment. |
|