Clion Arduino digitalPinToInterrupt() not declared in the scope

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 Clion Arduino digitalPinToInterrupt() not declared in the scope_第1张图片
By recognizing your own board type, you can replace the digitalPinToInterrupt() with an interrupt number.

你可能感兴趣的:(系统配置,Ubuntu系统,c++,Arduino,clion,c++)