You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.