|
用PROUTES對LED進行仿真,第一次發(fā)帖 不太會
0.png (96.49 KB, 下載次數(shù): 35)
下載附件
2017-6-8 23:44 上傳
0.png (46.97 KB, 下載次數(shù): 53)
下載附件
2017-6-8 23:44 上傳
0.png (8.55 KB, 下載次數(shù): 44)
下載附件
2017-6-8 23:44 上傳
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)建者:王豪
時間:2014.06.25
#根據(jù)單片機修改相關(guān)程序
修改stc12func.c
修改public.c
修改者:王豪
時間:2014.06.26
#關(guān)于138
由于138線焊接反了
138_A = P12
138_B = P11
138_C = P10
所以行選要注意
修改者:王豪
時間:2014.06.27
#將138去掉
直接使用單片機IO
修改者:王豪
時間:2014.06.28
#基本實現(xiàn)功能
可以顯示指定的LED
修改者:王豪
時間:2014.06.28
#特效顯示效果設(shè)計
設(shè)計多種顯示特效
display.h
display**.c
修改者:王豪
時間:2014.06.29
單片機源代碼如下:
- /**
- *******************************************************************************
- * @file main.c
- * @author Whao
- * @version 1.0.0
- * @date 2014/06/25
- * @brief Main function and init function
- *******************************************************************************
- * @attention
- * @addtogroup
- * @COPYRIGHT Whao-Technology
- *******************************************************************************
- */
- /* Includes -------------------------------------------------------------------*/
- #include "public.h"
- #include "stc12func.h"
- #include "apps.h"
- #include "comAssistant.h"
- /* Private typedef -------------------------------------------------------------*/
- /* Private define --------------------------------------------------------------*/
- /* Private macro ---------------------------------------------------------------*/
- /* Private variables -----------------------------------------------------------*/
- /* Private const ---------------------------------------------------------------*/
- /* Private function prototypes -------------------------------------------------*/
- /* Private functions -----------------------------------------------------------*/
- /********************************************************************************/
- /* Ordinary function */
- /********************************************************************************/
- /**
- * @brief This function handles System inital.
- * @param None
- * @retval None
- * @author WHao
- * @data 2013/07/07
- */
- void SystemInit(void)
- {
- InitSTCMcu(); //init stc mcu
- InitCoeff(); //init coefficient
- InitDevice(); //init devices
- TR0 = 1; //start timer0
- TR1 = 1; //start timer1
- EA = 1; //Enable interrupt
- //Send data to pc(or other device)
- UartSend("Rest is Ok\r\n",13);
- }
- /**
- * @brief This function handles main function.
- * @param None
- * @retval None
- * @author WHao
- * @data 2013/08/15
- */
- void main(void)
- {
- SystemInit();
-
- while(TRUE)
- {
- WDTClean(); //Clean WDT
- ……………………
- …………限于本文篇幅 余下代碼請從51黑下載附件…………
復(fù)制代碼
所有資料51hei提供下載:
光立方.rar
(275.37 KB, 下載次數(shù): 7)
2017-6-8 21:19 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|
|