Skip to content

Suggestion for examples: please don't use stream for Serial print, but Serial.print() instead #4

@dsyleixa

Description

@dsyleixa

Suggestion for examples: please don't use stream for Serial print, but Serial.print() instead
e.g.,
Serial << endl << counter.level, counter.period, counter.pulseWidth, counter.pulseWidthLow;
-- This is not understandable for a common Arduino user, because real C++ with std :: stream is far beyond their skills.
Arduino users use Serial.print( ) or Serial.println( ) instead, and those who want to more easily join strings will probably use the String Class by "+" instead of cstring char[ ] plus strcpy() or strcat( ) or stream.
Even cstring-linking with sprintf() would make it IMO even better than using stream pipelining.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions