一乐电子

一乐电子百科

 找回密码
 请使用微信账号登录和注册会员

QQ登录

只需一步,快速开始

快捷登录

手机号码,快捷登录

搜索
楼主: lyxing
收起左侧

再抄翻页钟(无键红外调整、音乐闹铃、整点提示、误差自动修正等)

  [复制链接]
发表于 2011-3-12 14:45 | 显示全部楼层
回复 49# lyxing
改了nongli里的文件编译不通过
发表于 2011-3-12 18:01 | 显示全部楼层
实在高手,快来去找一块屏来做
 楼主| 发表于 2011-3-12 19:49 | 显示全部楼层
回复 50# shqi2003


    正是此屏!
 楼主| 发表于 2011-3-12 20:22 | 显示全部楼层
回复 51# abcd2010118


    谢谢提醒, 原程序可能BUG还很多, 中秋老兄已改, 显示卅十的问题, 修改如下:
    nongli程序:
                temp=CurrentTime.NongLi_Day%10;
           if(temp)             //日为10,显示“十”
         date[58]=Js_Addr(ShuZi,(9+CurrentTime.NongLi_Day%10*2));     //日个位
        else
         date[58]=NongLi_Day_addres[1];

      
         date[59]=date[58]+16;     //

         改为如下:      
          temp=CurrentTime.NongLi_Day%10;
         if(temp)             //日为10,显示“十”
         {date[58]=Js_Addr(ShuZi,(9+CurrentTime.NongLi_Day%10*2));     //日个位
          date[59]=date[58]+16;}     //
         else if( CurrentTime.NongLi_Day==10)
            {date[58]=NongLi_Day_addres[1];
            date[59]=date[58]+16;     //
            }
                       
         else
         {date[58]=0;

          date[59]=0;
          }
           
         字体: 华康少女体  , 可根据喜好, 按字库字顺序排列, 重新生成点阵即可, 为了装入STC52, 字库的标点已由全角减为半角,程序修改需注意可能越界(实际好像超过8170就可能装不进, 而不是8192)
 楼主| 发表于 2011-3-12 20:48 | 显示全部楼层
实在高手,快来去找一块屏来做
新佳影 发表于 2011-3-12 18:01 https://www.yleee.com.cn/images/common/back.gif



        不必再找屏,老兄原5字屏改改也可行的。
发表于 2011-3-13 12:17 | 显示全部楼层
回复 54# lyxing


    改了还是编译不通过
 楼主| 发表于 2011-3-13 12:56 | 显示全部楼层
不会吧??我编译通过了, 并下载显示正常.

编译有何错误提示??
发表于 2011-3-13 13:00 | 显示全部楼层
编译何错误提示:
compiling main.c...
NONGLI.H(135): error C141: syntax error near 'unsigned'
NONGLI.H(135): error C202: 'JieQi_code': undefined identifier
NONGLI.H(136): error C141: syntax error near '{'
NONGLI.H(188): error C141: syntax error near '}'
NONGLI.H(190): error C141: syntax error near 'unsigned'
NONGLI.H(190): error C141: syntax error near '{'
NONGLI.H(191): error C141: syntax error near '}'
NONGLI.H(191): error C141: syntax error near ','
NONGLI.H(192): error C141: syntax error near '}'
NONGLI.H(192): error C141: syntax error near ','
NONGLI.H(193): error C141: syntax error near '}'
NONGLI.H(193): error C141: syntax error near ','
NONGLI.H(194): error C141: syntax error near '}'
NONGLI.H(194): error C141: syntax error near ','
NONGLI.H(195): error C141: syntax error near '}'
NONGLI.H(195): error C141: syntax error near ','
NONGLI.H(196): error C141: syntax error near '}'
NONGLI.H(196): error C141: syntax error near ','
NONGLI.H(197): error C141: syntax error near '}'
NONGLI.H(197): error C141: syntax error near ','
NONGLI.H(198): error C141: syntax error near '}'
NONGLI.H(198): error C141: syntax error near ','
NONGLI.H(199): error C141: syntax error near '}'
NONGLI.H(199): error C141: syntax error near ','
NONGLI.H(200): error C141: syntax error near '}'
NONGLI.H(200): error C141: syntax error near ','
NONGLI.H(201): error C141: syntax error near '}'
NONGLI.H(201): error C141: syntax error near ','
NONGLI.H(202): error C141: syntax error near '}'
NONGLI.H(202): error C141: syntax error near ','
NONGLI.H(203): error C141: syntax error near '}'
NONGLI.H(203): error C141: syntax error near ','
NONGLI.H(204): error C141: syntax error near '}'
NONGLI.H(204): error C141: syntax error near ','
NONGLI.H(205): error C141: syntax error near '}'
NONGLI.H(205): error C141: syntax error near ','
NONGLI.H(206): error C141: syntax error near '}'
NONGLI.H(206): error C141: syntax error near ','
NONGLI.H(207): error C141: syntax error near '}'
NONGLI.H(207): error C141: syntax error near ','
NONGLI.H(208): error C141: syntax error near '}'
NONGLI.H(208): error C141: syntax error near ','
NONGLI.H(209): error C141: syntax error near '}'
NONGLI.H(209): error C141: syntax error near ','
NONGLI.H(210): error C141: syntax error near '}'
NONGLI.H(210): error C141: syntax error near ','
NONGLI.H(211): error C141: syntax error near '}'
NONGLI.H(211): error C141: syntax error near ','
NONGLI.H(212): error C141: syntax error near '}'
NONGLI.H(212): error C141: syntax error near ','
NONGLI.H(213): error C141: syntax error near '}'
NONGLI.H(213): error C141: syntax error near ','
NONGLI.H(214): error C141: syntax error near '}'
NONGLI.H(214): error C141: syntax error near ','
NONGLI.H(215): error C141: syntax error near '}'
NONGLI.H(215): error C141: syntax error near ','
NONGLI.H(219): error C141: syntax error near 'unsigned'
NONGLI.H(223): error C202: 'JieQi_code': undefined identifier
NONGLI.H(227): error C202: 'JieQi_code': undefined identifier
Target not created
 楼主| 发表于 2011-3-13 13:34 | 显示全部楼层
看情况似  void NongLiUpdate( void)  函数中  "{ "  不配对, 可能多了"{ "  或者少了" }" .
发表于 2011-3-13 14:19 | 显示全部楼层
本帖最后由 abcd2010118 于 2011-3-13 14:41 编辑

结尾少了个“}”,现在编译成功。“廿”“卅”显示正常。还有一个奇怪的现象我试5个“DS18B20”只有一个温度正常显示,其余4个都是固定显示16度,把它们用在其他屏温度显示是正常的。

本版积分规则

QQ|一淘宝店|手机版|商店|电子DIY套件|一乐电子 ( 粤ICP备09076165号 ) 公安备案粤公网安备 44522102000183号

GMT+8, 2024-5-8 23:09 , Processed in 0.046604 second(s), 30 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表