找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 3047|回復(fù): 2
收起左側(cè)

3D8光立方原理圖和源代碼

[復(fù)制鏈接]
ID:209347 發(fā)表于 2017-6-8 21:19 | 顯示全部樓層 |閱讀模式
用PROUTES對(duì)LED進(jìn)行仿真,第一次發(fā)帖不太會(huì)
0.png 0.png 0.png
MagicCube編程文檔
MagicCube Program Document

#創(chuàng)建程序
創(chuàng)建框架
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
創(chuàng)建者:王豪
時(shí)間:2014.06.25

#根據(jù)單片機(jī)修改相關(guān)程序
修改stc12func.c
修改public.c
修改者:王豪
時(shí)間:2014.06.26

#關(guān)于138
由于138線(xiàn)焊接反了
138_A = P12
138_B = P11
138_C = P10
所以行選要注意
修改者:王豪
時(shí)間:2014.06.27

#將138去掉
直接使用單片機(jī)IO
修改者:王豪
時(shí)間:2014.06.28

#基本實(shí)現(xiàn)功能
可以顯示指定的LED
修改者:王豪
時(shí)間:2014.06.28

#特效顯示效果設(shè)計(jì)
設(shè)計(jì)多種顯示特效
display.h
display**.c
修改者:王豪
時(shí)間:2014.06.29

單片機(jī)源代碼如下:
  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. …………限于本文篇幅 余下代碼請(qǐng)從51黑下載附件…………
復(fù)制代碼

所有資料51hei提供下載:
光立方.rar (275.37 KB, 下載次數(shù): 7)


回復(fù)

使用道具 舉報(bào)

ID:197081 發(fā)表于 2017-8-7 20:24 | 顯示全部樓層
博主  可以把這個(gè)發(fā)我一份嗎    謝謝    郵箱16740681997@163.com
回復(fù)

使用道具 舉報(bào)

ID:197081 發(fā)表于 2017-8-7 20:26 | 顯示全部樓層
博主這個(gè)資料可以發(fā)我一份嗎  謝謝
郵箱  17640681997@163.com
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表