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.
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.