大家好, 我是小学生, 我写了一个中断 attachInterrupt (digitalPinToInterrupt (interruptPin) , blink, CHANGE) ; 显示报错 Compilation error: 'digitalPinToInterrupt' was not declared in this scope
我用 esp32 和 esp8266 都能编译通过, 就这个不行, 愁死了, 请问怎么解决这个问题
Don't worry. First, you must update the w80x arduino core. I posted the XT804. ZIP file in the "More Compatibility" article.
Then come back and show me your code.
Download the test case from BasicExamples - Gpio interrupts. Compilation will succeed
Expression AttachInterrupt (digitalPinToInterrupt (interruptPin) , blink, CHANGE) ; - not correct. Enough of this:
Documentation mismatch found! Thank you
https: //github. com/board707/w80x_arduino/issues/22#issue-1835001038
非常感谢, 按照你的方法, 我的代码编译通过了, Thank you very very much! !
希望能帮助更多的人, 谢谢.