Skip to content

light weight stream operator << for arduino platform

Notifications You must be signed in to change notification settings

neu-rah/streamFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3a12f1a · Feb 17, 2023

History

24 Commits
Feb 15, 2023
Feb 17, 2023
Feb 15, 2023
Oct 14, 2017
Feb 17, 2023

Repository files navigation

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;
}