【发布时间】:2016-10-15 19:47:00
【问题描述】:
我正在尝试使用“Yet Another PCInt Library”在我的 Arduino mega 2560 上启用引脚更改中断。在 Arduino IDE 中,代码在 windows 上编译良好,但在 mac 上失败。它给出了一个错误代码说明:
nullptr not declared in this scope
attachInterrupt(pin, (callback)func, nullptr, mode, trigger_now);
^
我怎样才能让它在 arduino IDE 中的 OS X 上编译?
【问题讨论】:
标签: c++ arduino interrupt nullptr