arduino / arduino-examples

Arduino IDE bundled examples
Creative Commons Zero v1.0 Universal
92 stars 42 forks source link

Expand String examples with explicit size concat and constructor #18

Open per1234 opened 4 years ago

per1234 commented 4 years ago

Moved from https://github.com/arduino/Arduino/pull/9239 by @matthijskooijman

This expands examples to show the newly added APIs:

String::concat(const char *, unsigned int)
String::String(const char *, unsigned int)

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.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.