ArduinoCore-API
ArduinoCore-API copied to clipboard
Hardware independent layer of the Arduino cores defining the official API
This fixes https://github.com/arduino/ArduinoCore-API/issues/96. Depends on https://github.com/arduino/ArduinoCore-samd/pull/676.
WCharacter.h use isascii, but isascii not defined by the ANSI C standard. Note: To fix for arm-none-eabi platform you can add definition: `#define _GNU_SOURCE`
Improvement of enums in some cases. Now it is coded that they must occupy 1 byte instead of 4.
When #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) operator = uses move() to just update the buffer pointer of the destination This ignores any reserve() the user has made to ensure...
The README says: > In the future, core apis will be updated independently from the core, so all the compatible cores will seamlessly adopt new features. This requires support from...
`String(long long int)` and `String(unsigned long long int)` are not defined for relevant platforms, so `String()` is unable to parse 64-bit integers. A minimal non-working example would be: ```cpp #include...
Printf is super useful. This PR will let users use Serial.printf
Adding New Classes MacAddress, MacAddress8 in the style of IPAddress. Note I didn't include Printable, as I don't understand how that works (edit: see updates below). If someone else wants...
This project changes `LOW`, `HIGH`, `INPUT`, `INPUT_PULLUP`, and `OUTPUT` from macros to enums: https://github.com/arduino/ArduinoCore-API/blob/e1eb8de126786b7701b211332dda3f09aa400f35/api/Common.h#L10-L23 I'm concerned that this will cause breakage of a significant amount of existing code. An example...