Coder Social home page Coder Social logo

diplodocuslongus / 224-superior-serial.print-statements Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ralphbacon/224-superior-serial.print-statements

0.0 0.0 0.0 838 KB

Use this to speed up your final project and reduce code bloat

License: MIT License

C++ 65.62% C 34.38%

224-superior-serial.print-statements's Introduction

224 Superior Serial.print statements

Use this to speed up your final project and reduce code bloat! And we learn about printing formatted strings using printf too!

smallThumbnail
Watch the video first to bring yourself up to speed!
Video link: https://youtu.be/--KxxMaiwSE

There are two examples for you:

  • the first is the one used in the YouTube video; it's simple and very understandable and will save you program (sketch) space and speed up final execution of the code too.

  • the second is more advanced and was not covered in the video. It prints out the function name and line number from where the debugging statement was called, and is more granular: you can write different levels of debugging message, including Errors, Warnings, General Debugging and Verbose messages. You can easily expand on these types and control what appears from one line in your sketch.

If you are new to this, install the first example first (or ensure you understand the concepts) before installing the more advanced method.

printf anyone?

I'll cover this in more detail in a future video. The ESP32 and EPS8266 already have this function built-in, but the Arduino benefits greatly from using the LibPrint library from Embedded Artistry and Marco Paland. As I say, we'll have a deeper dive in a future video.
https://github.com/embeddedartistry/arduino-printf
https://github.com/mpaland/printf

224-superior-serial.print-statements's People

Contributors

ralphbacon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.