Since not all cores versions will support this right away, a version
check is added against ARDUINO_CORE_API.
These APIs are added to ArduinoCore-API in https://github.com/arduino/ArduinoCore-API/pull/97. Before merging these examples, the version check must be updated to the first API version that includes these new APIs.
Moved from https://github.com/arduino/Arduino/pull/9239 by @matthijskooijman
This expands examples to show the newly added APIs:
Since not all cores versions will support this right away, a version check is added against ARDUINO_CORE_API.
These APIs are added to ArduinoCore-API in https://github.com/arduino/ArduinoCore-API/pull/97. Before merging these examples, the version check must be updated to the first API version that includes these new APIs.