Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Jun 24, 2012
1 parent 85079d5 commit a635448
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions examples/serstream/more.cpp
@@ -0,0 +1,9 @@
#include <serstream>
#include <Arduino.h>

void more(void)
{
Serial.print("more");

std::cout << 1.0f;
}
9 changes: 8 additions & 1 deletion examples/serstream/serstream.ino
Expand Up @@ -11,6 +11,8 @@ namespace std
ohserialstream cout(Serial);
}

extern void more(void);

void setup(void)
{
Serial.begin(57600);
Expand All @@ -21,11 +23,16 @@ void setup(void)
cout << F("so you can use as many F() strings as you want!") << endl;

float fmax = __FLT_MAX__, fmin = __FLT_MIN__;
cout.precision(9);
cout.precision(7);
cout << "Float " << scientific << fmax << endl;
cout << "Float " << scientific << fmin << endl;

more();

cout << "+OK" << endl;

int n = 3;
int (*button)[3] = new int[n][3];
}

void loop(void)
Expand Down

0 comments on commit a635448

Please sign in to comment.