On each interrupt, it executes timerIsr() function, in which I have placed a check that whenever this interrupt will call we will increment TimeinSec variable.In this code, I have used a TimerOne Library which creates an interrupt after every 1sec.If((digitalRead(HBSensor) = LOW) & (HBCheck = 1)) If((digitalRead(HBSensor) = HIGH) & (HBCheck = 0)) put your setup code here, to run once: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |