DIY創(chuàng)意家庭:實(shí)現(xiàn)LED臺(tái)燈的智能化,提供軟硬件解決方案的設(shè)計(jì)細(xì)節(jié)
5)整體流程(main主循環(huán)和個(gè)按鍵中斷處理流程圖)
詳細(xì)的軟件代碼參見附錄6.3 的main.c和三個(gè)按鍵中斷函數(shù)以及超聲波測(cè)距中斷函數(shù)——CY_ISR(isr_ADJ_Interrupt)
整個(gè)智能LED臺(tái)燈設(shè)計(jì)工程軟件編譯結(jié)果(報(bào)告)如下:
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機(jī)械鍵盤相關(guān)社區(qū):機(jī)械鍵盤DIY
評(píng)論