Using the counter correctly

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User14262
Level 2
Level 2
hey guys im trying to use the counter correctly right now i have total of 3 digitial ios one digitial io is output and i have one digitial io input that external connected with digitial io output for the counter input and the last digitial io input for ignition switch.. right now in my code is that it will reset on it own till it reaches counter match of 5 then my problem is that i want to after 5 counts that it stops reseting and wait for digitial io ignition switch to cycle from low to high and then reset counter till it reaches back 5 on the count match and wait again till ignition switch cycles. but i only see getinput(&DIGITIAL_IGN) on the digitial io but that doesnt tell me if the igntion switch state is high or low thats my only problem
0 Likes
0 Replies