diff --git a/examples/StreamingExample/StreamingExample.ino b/examples/StreamingExample/StreamingExample.ino index 4436d6c..e810290 100644 --- a/examples/StreamingExample/StreamingExample.ino +++ b/examples/StreamingExample/StreamingExample.ino @@ -1,11 +1,20 @@ -#include "Streaming.h" +#include + + +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; @@ -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); } diff --git a/library.properties b/library.properties index ae859f1..98a8d6f 100644 --- a/library.properties +++ b/library.properties @@ -4,5 +4,6 @@ author=Mikal Hart maintainer=Peter Polidoro 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=*