Updated the library dependancy version in example to avoid confusion.
This commit also adds another "app_api.h" include to follow the
official documentation example
I was tinkering with this the other day and was confused about what the latest version was :)
I wasn't sure to include is this point about attachInterrupt, but I will mention it here:
The debugger needs to handle the INTx interrupt which is in conflict with the attachInterrupt
function in Arduino software library. Small modification of the Arduino library code is required to
build the program. This is described in Step 6 section of this document.
This point in the platformio documentation
One external interrupt pin must be reserved for the debugger.
May be good enough, but I was a bit surprised a modification to the Arduino library is needed.
https://docs.platformio.org/en/latest/plus/debug-tools/avr-stub.html
Updated the library dependancy version in example to avoid confusion. This commit also adds another
"app_api.h"
include to follow the official documentation exampleI was tinkering with this the other day and was confused about what the latest version was :)
I wasn't sure to include is this point about
attachInterrupt
, but I will mention it here:This point in the platformio documentation
May be good enough, but I was a bit surprised a modification to the Arduino library is needed.