Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
2c9678bf
Commit
2c9678bf
authored
12 years ago
by
Pat Hickey
Browse files
Options
Downloads
Patches
Plain Diff
MultiFastSerial test: make it easier to observe which serial port causes crash
parent
42036556
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/FastSerial/examples/MultiFastSerial/MultiFastSerial.pde
+21
-16
21 additions, 16 deletions
...s/FastSerial/examples/MultiFastSerial/MultiFastSerial.pde
with
21 additions
and
16 deletions
libraries/FastSerial/examples/MultiFastSerial/MultiFastSerial.pde
+
21
−
16
View file @
2c9678bf
...
...
@@ -37,23 +37,28 @@ void setup(void)
Serial2
.
begin
(
115200
);
Serial3
.
begin
(
115200
);
//
// Test printing things
//
Serial
.
print
(
"test"
);
Serial
.
println
(
" begin"
);
Serial
.
println
(
1000
);
Serial
.
println
(
1000
,
8
);
Serial
.
println
(
1000
,
10
);
Serial
.
println
(
1000
,
16
);
Serial
.
println_P
(
PSTR
(
"progmem"
));
Serial
.
printf
(
"printf %d %u %#x %p %f %S
\n
"
,
-
1000
,
1000
,
1000
,
1000
,
1.2345
,
PSTR
(
"progmem"
));
Serial
.
printf_P
(
PSTR
(
"printf_P %d %u %#x %p %f %S
\n
"
),
-
1000
,
1000
,
1000
,
1000
,
1.2345
,
PSTR
(
"progmem"
));
Serial
.
println
(
"done"
);
do
{
Serial
.
print
(
"hello serial0 millis: "
);
Serial
.
println
(
millis
(),
DEC
);
}
while
(
millis
()
<
1000
);
Serial1
.
println
(
"hello serial1"
);
Serial2
.
println
(
"hello serial2"
);
Serial3
.
println
(
"hello serial3"
);
do
{
Serial1
.
println
(
"hello serial1"
);
Serial
.
print
(
"hello serial0 millis: "
);
Serial
.
println
(
millis
(),
DEC
);
}
while
(
millis
()
<
2000
);
do
{
Serial2
.
println
(
"hello serial2"
);
Serial
.
print
(
"hello serial0 millis: "
);
Serial
.
println
(
millis
(),
DEC
);
}
while
(
millis
()
<
3000
);
do
{
Serial3
.
println
(
"hello serial3"
);
Serial
.
print
(
"hello serial0 millis: "
);
Serial
.
println
(
millis
(),
DEC
);
}
while
(
millis
()
<
4000
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment