DIY創(chuàng)意家庭:實現(xiàn)LED臺燈的智能化,提供軟硬件解決方案的設(shè)計細節(jié)
5)整體流程(main主循環(huán)和個按鍵中斷處理流程圖)
詳細的軟件代碼參見附錄6.3 的main.c和三個按鍵中斷函數(shù)以及超聲波測距中斷函數(shù)——CY_ISR(isr_ADJ_Interrupt)
整個智能LED臺燈設(shè)計工程軟件編譯結(jié)果(報告)如下:
segment .xdata is 514 bytes long
segment .bss is 35 bytes long
segment .pdata is 0 bytes long
segment .text is 14558 bytes long
segment .bit is 9 bytes long
segment .sfr is 0 bytes long
Flash used: 14557 of 65536 bytes (22.2 %).
SRAM used: 514 of 8192 bytes (6.3 %).
DIY機械鍵盤相關(guān)社區(qū):機械鍵盤DIY
評論