Browse files

more

  • Loading branch information...
1 parent 85079d5 commit a635448fd4b5b00ffd9aae736d9376407123ea48 @maniacbug committed Jun 23, 2012
Showing with 17 additions and 1 deletion.
  1. +9 −0 examples/serstream/more.cpp
  2. +8 −1 examples/serstream/serstream.ino
View
9 examples/serstream/more.cpp
@@ -0,0 +1,9 @@
+#include <serstream>
+#include <Arduino.h>
+
+void more(void)
+{
+ Serial.print("more");
+
+ std::cout << 1.0f;
+}
View
9 examples/serstream/serstream.ino
@@ -11,6 +11,8 @@ namespace std
ohserialstream cout(Serial);
}
+extern void more(void);
+
void setup(void)
{
Serial.begin(57600);
@@ -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)

0 comments on commit a635448

Please sign in to comment.