Board logo

標題: [操作疑難] 想問Arduino Interrupt用途... [打印本頁]

作者: hkepcnewbie    時間: 2014-12-31 15:18     標題: 想問Arduino Interrupt用途...

本身用mega連touchpanel寫左段code,  但由於段code太長(主要係計數), 每次按touchpanel都會太遲比反應, 想問如果用arduino interrupt function, 係咪可以一按即有反應, 而完成後又會繼續run段code? Thanks!!!
作者: hkepcnewbie    時間: 2014-12-31 16:44

"  attachInterrupt(0, increment, FALLING);  "

呢句主要用在hardware interrupt setup上, 但由於塊mega連住touchpanel, 應該是用software interrupt,  請問句code應該是點樣寫? Thanks!!!





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2