ArduinoCore-API icon indicating copy to clipboard operation
ArduinoCore-API copied to clipboard

Hardware independent layer of the Arduino cores defining the official API

Results 136 ArduinoCore-API issues
Sort by recently updated
recently updated
newest added

In case the user needs to call the functions from Print/String, these placeholders should be implemented (with C++ scope)

Hello, If a String creation fails it is possible to detect this error in the code, like: ```C++ String s = "abc"; if (!s) ... // error, out of heap...

It looks like these methos are only used in the AVR ports, and even then they indicate that they should not be used. [ArduinoCore-avr/libraries/SPI/src/SPI.h#L306-L310](https://github.com/arduino/ArduinoCore-avr/blob/42fa4a1ea1b1b11d1cc0a60298e529d37f9d14bd/libraries/SPI/src/SPI.h#L306-L310) [ArduinoCore-megaavr/libraries/SPI/src/SPI.h#L183-L187](https://github.com/arduino/ArduinoCore-megaavr/blob/01b56951ed2a8acfa7a4efc4e9a2687f626641d1/libraries/SPI/src/SPI.h#L183-L187) ```cpp // These undocumented functions...

enhancement

It would be nice if there was a possibility to implement a way to add some own code in the timer interrupt routine. That could be accomplished like it is...

enhancement

I wrote a couple of lines of helper code to allow for easy printing. If anyone is interested, I could incorporate it in `Stream.h` and open a pull request. Usage:...

enhancement

There is currently no function to get the current pin mode. A possible implementation is: ``` int pinMode(uint8_t pin) { if (pin >= NUM_DIGITAL_PINS) return (-1); uint8_t bit = digitalPinToBitMask(pin);...

enhancement

A UTF-8 to extended ASCII conversion method may be interesting, useful for use with different types of displays.

enhancement

A very long time ago, in Arduino, `flush()` changed from "purge input" to "send output buffer" and moved from Stream to Print. But now there is no method to "purge...

enhancement

The CAN specification reserves a bit in the arbitration header to signal if the frame is a Remote Transfer Request (RTR) frame or a normal Data frame. This is the...

enhancement