大家好,我是小學生,我寫了一個中斷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!!
希望能幫助更多的人,謝謝。