嗨,谢谢你的回复,是的,我可以使用计时器进行更长的按键检测。主要的是硬件,我认为,我想给控制器使用1个按钮而不是开关给电源,意味着如果我按下一次电源进入控制器然后我们的应用程序将工作,如果我按下该按钮一点点它将关闭。问题不能通过我想的代码来解决,它需要硬件。所以我建立了闩锁电路,当我按下一个键并且我们的控制器获得电源时它接通但是我不能将该键用于我的应用,因为它总是很高,因为它是BC547的基准引脚。
以上来自于谷歌翻译
以下为原文
Hi thanks for response, Yea i can do that longer button press detection using timer. Main thing is hardware i think, That i want to give power supply to controller using 1 button not switch, means if i pressed once power supply goes to controller then our application will work and if i pressed that button little longer it will off. Problem cant be solved by just code i think, it needs hardware. So i built latch circuit which gets ON when i press a key and our controller gets power supply but then i cant use that key for my application as it is always high, as it is base pin of BC547.
嗨,谢谢你的回复,是的,我可以使用计时器进行更长的按键检测。主要的是硬件,我认为,我想给控制器使用1个按钮而不是开关给电源,意味着如果我按下一次电源进入控制器然后我们的应用程序将工作,如果我按下该按钮一点点它将关闭。问题不能通过我想的代码来解决,它需要硬件。所以我建立了闩锁电路,当我按下一个键并且我们的控制器获得电源时它接通但是我不能将该键用于我的应用,因为它总是很高,因为它是BC547的基准引脚。
以上来自于谷歌翻译
以下为原文
Hi thanks for response, Yea i can do that longer button press detection using timer. Main thing is hardware i think, That i want to give power supply to controller using 1 button not switch, means if i pressed once power supply goes to controller then our application will work and if i pressed that button little longer it will off. Problem cant be solved by just code i think, it needs hardware. So i built latch circuit which gets ON when i press a key and our controller gets power supply but then i cant use that key for my application as it is always high, as it is base pin of BC547.
举报