Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michal Rybka
openCanSat-2.0-library
Commits
d4ab6667
Commit
d4ab6667
authored
Aug 19, 2018
by
Markéta Jedličková
Browse files
Init for RFM69 bug fixed
parent
ed05cb79
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/3-Each-module-examples/RFM69_send_TEST.ino
View file @
d4ab6667
...
...
@@ -35,7 +35,7 @@
// Variables
int
idCounter
=
1
;
RFM69
radio
(
CHIP_SELECT_PIN
,
INTERUP_PIN
,
true
);
RFM69
radio
(
CHIP_SELECT_PIN
,
INTERUP_PIN
,
true
,
INTERUP_PIN
);
typedef
struct
{
...
...
@@ -57,9 +57,14 @@ void setup()
Serial
.
println
(
"openCanSat RFM69 receive test started"
);
// RFM69 initialize
radio
.
initialize
(
FREQUENCY
,
MYNODEID
,
NETWORKID
);
radio
.
setHighPower
(
true
);
// Always use this for RFM69HW
if
(
radio
.
initialize
(
FREQUENCY
,
MYNODEID
,
NETWORKID
))
{
radio
.
setHighPower
(
true
);
// Always use this for RFM69HW
}
else
{
Serial
.
println
(
"RFM69HW initialization failed!"
);
}
Serial
.
println
();
// print new line on serial to make the output look better :-;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment