Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: xtoff2 RF24Network mbed
Fork of xtoff3 by
Diff: Ontvanger.cpp
- Revision:
- 10:0a4c465f7838
- Parent:
- 7:8515f205483b
- Child:
- 11:77018fac195e
diff -r e14f65b8ffc2 -r 0a4c465f7838 Ontvanger.cpp
--- a/Ontvanger.cpp Thu Mar 08 09:23:20 2018 +0000
+++ b/Ontvanger.cpp Fri Mar 09 08:26:00 2018 +0000
@@ -7,10 +7,11 @@
Ontvanger::Ontvanger()
{
- wait_ms(1000);
radio.begin();
network.begin(90, this_node);
wait_ms(2000);
+ radio.setPALevel(RF24_PA_MIN);
+ radio.setDataRate(RF24_250KBPS);
};
void Ontvanger::update()
@@ -39,4 +40,14 @@
return network.write(header_tx,&packet,sizeof(packet));
}
+bool Ontvanger::isValid()
+{
+ return radio.isValid();
+}
+bool Ontvanger::testRPD()
+{
+ return radio.testRPD();
+}
+
+
