Skip to content

Commit a635448

Browse files
committed
more
1 parent 85079d5 commit a635448

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: examples/serstream/more.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <serstream>
2+
#include <Arduino.h>
3+
4+
void more(void)
5+
{
6+
Serial.print("more");
7+
8+
std::cout << 1.0f;
9+
}

Diff for: examples/serstream/serstream.ino

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ namespace std
1111
ohserialstream cout(Serial);
1212
}
1313

14+
extern void more(void);
15+
1416
void setup(void)
1517
{
1618
Serial.begin(57600);
@@ -21,11 +23,16 @@ void setup(void)
2123
cout << F("so you can use as many F() strings as you want!") << endl;
2224

2325
float fmax = __FLT_MAX__, fmin = __FLT_MIN__;
24-
cout.precision(9);
26+
cout.precision(7);
2527
cout << "Float " << scientific << fmax << endl;
2628
cout << "Float " << scientific << fmin << endl;
2729

30+
more();
31+
2832
cout << "+OK" << endl;
33+
34+
int n = 3;
35+
int (*button)[3] = new int[n][3];
2936
}
3037

3138
void loop(void)

0 commit comments

Comments
 (0)