标题: 3D8光立方原理图和源代码 [打印本页]

作者: C渣渣    时间: 2017-6-8 21:19
标题: 3D8光立方原理图和源代码
用PROUTES对LED进行仿真,第一次发帖不太会

MagicCube编程文档
MagicCube Program Document

#创建程序
创建框架
Source
    apps.c
    comAssistant.c
    main.c
    public.c
    stc12cIntProcess.c
    stc12func.c
Include
    apps.h
    comAssistant.h
    comdef.h
    config.h
    public.h
    stc12func.h
Doc
    readme.txt
创建者:王豪
时间:2014.06.25

#根据单片机修改相关程序
修改stc12func.c
修改public.c
修改者:王豪
时间:2014.06.26

#关于138
由于138线焊接反了
138_A = P12
138_B = P11
138_C = P10
所以行选要注意
修改者:王豪
时间:2014.06.27

#将138去掉
直接使用单片机IO
修改者:王豪
时间:2014.06.28

#基本实现功能
可以显示指定的LED
修改者:王豪
时间:2014.06.28

#特效显示效果设计
设计多种显示特效
display.h
display**.c
修改者:王豪
时间:2014.06.29

单片机源代码如下:
  1. /**
  2.   *******************************************************************************
  3.   * @file            main.c
  4.   * @author          Whao
  5.   * @version         1.0.0
  6.   * @date                 2014/06/25   
  7.   * @brief           Main function and init function
  8.   *******************************************************************************
  9.   * @attention
  10.   *        @addtogroup               
  11.   * @COPYRIGHT        Whao-Technology
  12.   *******************************************************************************
  13.   */

  14. /* Includes -------------------------------------------------------------------*/
  15. #include "public.h"
  16. #include "stc12func.h"
  17. #include "apps.h"
  18. #include "comAssistant.h"
  19. /* Private typedef -------------------------------------------------------------*/
  20. /* Private define --------------------------------------------------------------*/
  21. /* Private macro ---------------------------------------------------------------*/
  22. /* Private variables -----------------------------------------------------------*/
  23. /* Private const ---------------------------------------------------------------*/
  24. /* Private function prototypes -------------------------------------------------*/
  25. /* Private functions -----------------------------------------------------------*/
  26. /********************************************************************************/
  27. /*                       Ordinary function                                                                       */
  28. /********************************************************************************/
  29. /**
  30.   * @brief  This function handles System inital.
  31.   * @param  None
  32.   * @retval None
  33.   *        @author        WHao
  34.   *        @data        2013/07/07
  35.   */
  36. void SystemInit(void)
  37. {                                                               
  38.         InitSTCMcu();                                //init stc mcu                                                                    
  39.         InitCoeff();                                 //init coefficient
  40.         InitDevice();                                //init devices                                                                                       
  41.         TR0                =        1;                                //start timer0
  42.         TR1                =        1;                                //start timer1
  43.         EA                 =         1;                                //Enable interrupt
  44. //Send data to pc(or other device)
  45.         UartSend("Rest is Ok\r\n",13);
  46. }
  47. /**
  48.   * @brief  This function handles main function.
  49.   * @param  None
  50.   * @retval None
  51.   *        @author        WHao
  52.   *        @data        2013/08/15
  53.   */
  54. void main(void)
  55. {
  56.         SystemInit();
  57.        
  58.         while(TRUE)
  59.         {
  60.                 WDTClean();                                //Clean WDT
  61. ……………………

  62. …………限于本文篇幅 余下代码请从51黑下载附件…………
复制代码

所有资料51hei提供下载:
光立方.rar (275.37 KB, 下载次数: 7)



作者: fengliang    时间: 2017-8-7 20:24
博主  可以把这个发我一份吗    谢谢    邮箱16740681997@163.com
作者: fengliang    时间: 2017-8-7 20:26
博主这个资料可以发我一份吗  谢谢
邮箱  17640681997@163.com




欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1