-
Hello dear community, I am a newbie in the microcontroller scene. Recently, I have been trying to integrate attachInterrupt into a class within my own library which you can find at my repository InputDigital. I looked all over the internet and found several solutions. Some require pointer, others require static ISR which come with their own disadvantages. But the best method I could find is using the function std::bind from but this could only worked for the ESP32 cores with its <FunctionalInterrupt.h>. I tested this way with an ESP32 and it worked wonderfully. I wonder if there is an similar solution for the STM32 core since I tried it with STM32F1 and the error I got was "functional: No such file or directory". Thank you for reading. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @DngQucVng |
Beta Was this translation helpful? Give feedback.
I tried including <WInterrupts.h> and it works nicely. Thank you so much @fpistm