-
-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New to SAMD21 - is there no Serial.printf? #457
Comments
No official architecture supports |
With other architectures I meant ESP32 Arduino, ESP8266 Arduino, nRF52 Arduino frameworks. Surprised it is not on SAMD |
Example. on ESP32 it is in Print.cpp size_t Print::printf(const char * format, ...)
{
char buf[256];
int len;
va_list ap;
va_start(ap, format);
len = vsnprintf(buf, 256, format, ap);
this->write(buf, len);
va_end(ap);
return len;
}```
Wondering if that would work on SAMD |
I see, that it is not in ArduinoAVR framework. Maybe I was just lucky with the platforms I used before. |
Yeah, those are third-party platforms that have made this custom addition. It is not part of the official Arduino API, for reasons previously stated elsewhere. See also arduino/ArduinoCore-API#34. |
Maybe it's just me, but on other architectures I am have no problems using printf like
Serial.printf("\nLoRa begin failed %d\n", state);
But for SAMD21 it throws compile error
Am I missing something
The text was updated successfully, but these errors were encountered: