Indicate it is an interrupt routine in the function name (for your own That you write - you can call it anything you like but it is best to Note that "my_isr_function" is simply a standard Arduino function On the falling edge of the digital input signal. This would set an interrupt on pin3 (INT1) to call "my_isr_function" Pins, you should use the function digitalPinToInterrupt( INTPIN ) asĪttachInterrupt( digitalPinToInterrupt( INTPIN ), my_isr_function, FALLING ) Since different Arduino boards have interrupt capability on different
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |