Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 596 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 596 Bytes

streamFlow

Simple and light-weight stream operator for Arduino framework.

This is not an emulation of C++ ostream, but it mimics those good parts

Supporting

  • operator<<
  • endl
  • flush
  • precision(n) for float only
  • dec, hex, oct, bin radix base spec. only for integral numbers

Example

#include <streamFlow.h>
using namespace StreamFlow;

void setup() {
  Serial.begin(115200);
  while(!Serial);
  Serial<<"stream style with arduino Serial"<<endl
        <<"version:"<<precision(2)<<2.0<<endl
        <<"hex format 0x"<<hex<<1967<<endl
        <<"enjoy!"<<endl<<flush;
}