MENU

Fun & Interesting

#227 ✨printf for Arduino✨(and ESP32, ESP8266) easy, formatted output

Ralph S Bacon 30,017 4 years ago
Video Not Working? Fix It Now

Replace your multiple Serial.print statements with a single printf statement. ► JLCPCB Only $2 for PCB Prototype any colour https://jlcpcb.com/cyt ► You can now help support my channel! Buy Me A Coffee! https://bit.ly/BuyRalphACoffee ► READING Refresher reading on Arduino's Serial.print https://www.arduino.cc/reference/en/language/functions/communication/serial/print/ cplusplus.com website all about printf (and everything else C++) https://www.cplusplus.com/reference/cstdio/printf/ cplusplus.com all about sprintf (printing to a string) https://www.cplusplus.com/reference/cstdio/sprintf/ ► CODING Download: Embedded artistry's modified printf for the Arduino https://github.com/embeddedartistry/arduino-printf Reference: Marko Paland's original printf (on which the above is based) https://github.com/mpaland/printf ► Example sketch (as per the demo) PLUS the library for Arduino users https://github.com/RalphBacon/227-printf-for-Arduino-and-ESP32 ► Why floats (and doubles) might be bad for your sketch https://www.youtube.com/watch?v=PZRI1IfStY0 ► RECOMMENDED COMPONENTS Coming soon! Products I've bought and used and which I've found great! ► List of all my videos (Special thanks to Michael Kurt Vogel for compiling this) http://bit.ly/YouTubeVideoList-RalphBacon ► If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite (and other μControllers) journey My channel, GitHub and blog are here: ------------------------------------------------------------------ • https://www.youtube.com/RalphBacon • https://ralphbacon.blog • https://github.com/RalphBacon • https://bit.ly/BuyRalphACoffee ------------------------------------------------------------------

Comment