current position:Home>How to use mesic interrupt (language-c language)

How to use mesic interrupt (language-c language)

2022-01-27 00:11:29 CSDN Q & A

The figure is as follows :

img

The purpose of realization : Execute after entering the interrupt LED Light up 2S Turn off the rear lights . Used two triggers ( Rising edge and falling edge ) Triggered twice in total .1 Next is 11 foot LED Light on 2S After extinction ( Not performing other actions );2 Next is 12 foot LED Foot light 2S Turn off the rear lights , And I'm not doing anything about it .
The phenomenon : You can perform the action of descending , There is no action on the rising edge . I don't understand why it doesn't work properly . Compilation is normal , Upload is also successful

img

img




Refer to the answer 1:

The problem has been solved , But I didn't understand why it must be put in the cycle to work normally .

img




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270011275416.html

Random recommended