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.
Diff: pir1_sensor.cpp
- Revision:
- 5:fbd5b1e953e6
- Parent:
- 4:aa25f65395e3
- Child:
- 6:98401b545e0c
--- a/pir1_sensor.cpp Thu Jan 05 10:47:42 2017 +0000 +++ b/pir1_sensor.cpp Thu Jan 05 11:05:03 2017 +0000 @@ -1,11 +1,11 @@ +#include "mbed.h" + #include "common.h" -#include "mbed.h" -#include "nRF24L01P.h" // ***** SETTINGS START ***** -const unsigned long long RX_ADDRESS = MASTER_ADDRESS; -const unsigned long long TX_ADDRESS = PIR1_ADDRESS; +const unsigned long long RX_ADDRESS = PIR1_ADDRESS; +const unsigned long long TX_ADDRESS = MASTER_ADDRESS; const double SEND_INTERVAL = 5.0; const uint8_t SENSOR_ID = PIR1;