Skip to content

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolidoro committed Oct 17, 2018
1 parent bd59bc2 commit ad35945
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
22 changes: 15 additions & 7 deletions examples/StreamingExample/StreamingExample.ino
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
#include "Streaming.h"
#include <Streaming.h>


const long BAUD = 115200;

const int lettera = 'A';
const int month = 4, day = 17, year = 2009;

const long LOOP_DELAY = 1000;

void setup()
{
Serial.begin(9600);
int lettera = 'A';
int month = 4, day = 17, year = 2009;
Serial.begin(BAUD);
}

void loop()
{
Serial << "This is an example of the new streaming" << endl;
Serial << "library. This allows you to print variables" << endl;
Serial << "and strings without having to type line after" << endl;
Expand All @@ -16,8 +25,7 @@ void setup()

Serial << "You can use modifiers too, for example:" << endl;
Serial << _BYTE(lettera) << " is " << _HEX(lettera) << " in hex. " << endl;
}
Serial << endl;

void loop()
{
delay(LOOP_DELAY);
}
1 change: 1 addition & 0 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ author=Mikal Hart <[email protected]>
maintainer=Peter Polidoro <[email protected]>
sentence=Streaming C++-style Output with Operator <<
paragraph=Like this project? Please star it on GitHub!
category=Communication
url=https://github.com/janelia-arduino/Streaming
architectures=*

0 comments on commit ad35945

Please sign in to comment.