Merge pull request #15149 from 0xc0170/fix-issue-8188

InterruptIn: add note about enabling interrupts in rise/fall
pull/15161/head
Martin Kojtal 2021-10-25 11:45:45 +02:00 committed by GitHub
commit d9b2b7d7ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -99,12 +99,14 @@ public:
/** Attach a function to call when a rising edge occurs on the input
* Interrupts are enabled for the pin
*
* @param func A pointer to a void function, or 0 to set as none
*/
void rise(Callback<void()> func);
/** Attach a function to call when a falling edge occurs on the input
* Interrupts are enabled for the pin
*
* @param func A pointer to a void function, or 0 to set as none
*/