Clion Arduino attachInterrupt() Error
Error occurs when I’m using attachInterrupt(digitalPinToInterrupt, ISP, Rising):
Error: digitalPinToInterrupt() not declared in this scope
Solution:
Please refer to the instruction in Arduino attachInterrupt() .
According to the
By recognizing your own board type, you can replace the digitalPinToInterrupt()
with an interrupt number.