关于 arduino 中断的问题

发布于 2023-08-03 18: 45: 29

大家好, 我是小学生, 我写了一个中断 attachInterrupt (digitalPinToInterrupt (interruptPin) , blink, CHANGE) ; 显示报错 Compilation error: 'digitalPinToInterrupt' was not declared in this scope
我用 esp32 和 esp8266 都能编译通过, 就这个不行, 愁死了, 请问怎么解决这个问题

查看更多

关注者
0
被浏览
3. 1k
AnatolSher
AnatolSher 认证专家 2023-08-03
Lover of the ocean, yachts and Arduino

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
image. png

Expression AttachInterrupt (digitalPinToInterrupt (interruptPin) , blink, CHANGE) ; - not correct. Enough of this:
image. png
Documentation mismatch found! Thank you
https: //github. com/board707/w80x_arduino/issues/22#issue-1835001038

1 个回答

撰写答案

请登录后再发布答案, 点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览