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

I have the following small template library on my page about SPI ( http://www.gammon.com.au/spi ): ``` C++ template unsigned int SPI_writeAnything (const T& value) { const byte * p =...

Urgently needed: ANSI-C-like `fprintf()`, `fscanf()` Actually homebrewed `fprintf_` works fine (SD file checked on PC), just `fscanf_` muddles all up. Up to now I've used a homebrewed function `fscanf_` but...

enhancement

Just found this: http://stackoverflow.com/questions/10044449/a-function-with-variable-number-of-arguments-with-known-types-the-c11-way Add this to Print.h: ``` cpp template size_t println(const String &head, TailType&&... tail) { size_t r = 0; r+=println(head); r+=println((tail)...); return r; } ``` Now you...

enhancement

Sometimes, you want to read / parse incoming stream data until you find one of two (or a few) different strings. This is particularly useful when dealing with Serial-based (or...

I mean...Serial.write() has already the hability of sending byte arrays in the form Serial.write(myarray, sizeof(myarray));. Why not doing the same with structs like struct { byte x; byte y;} mystruct;...

Originally posted in arduino/Arduino#2449 by @PaulStoffregen: > Please do not mistake the issue I'm about to describe with the transaction scope discussion. > > Also, please let me preface this...

Certain stream types can end - obviously not Serial, but those derived from Client, plus the File objects in SD. File gets round the problem by returning an available of...

String str0, str1, str2, str3; str0 = str1 + str2 + str3; //// will cause problem str0 += str1 + str2; //// will cause problem str0 = str1; str0 +=...

commonly people want get the buffer ptr by a constant String object like below: const String &str; const char *p = &str[0]; BUT now the constant operator [] returns a...

It would be nice, if the Stream-Interface could be changed/extended with a peek method that takes a position/offset. I often have the need to search/wait, until a certain charakter is...