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.
Revision 2:0914762d8957, committed 2019-06-03
- Comitter:
- kadir44
- Date:
- Mon Jun 03 08:45:54 2019 +0000
- Parent:
- 1:45ed2ebefd5a
- Commit message:
- NRF24L01
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jan 18 14:31:17 2019 +0000
+++ b/main.cpp Mon Jun 03 08:45:54 2019 +0000
@@ -2,10 +2,10 @@
#include <RF24.h>
-RF24 device(SPI_MOSI, SPI_MISO, SPI_SCK, D9, SPI_CS);
+RF24 device(PA_7, PA_6, PA_5, PB_12, PB_11);
DigitalIn ms(D2);
DigitalIn mybutton(USER_BUTTON);
-const uint64_t pipe_address = 0xF0F0F0F0AA;
+const uint64_t pipe_address = 0xE8E8F0F0E1LL;
void receiver();
void transmitter(char* message);
@@ -62,7 +62,8 @@
char text[32];
device.read(&text, sizeof(text));
if (text[0]!='\0')
- printf("%s recu : %d\n\r",text,sizeof(text));
+ printf("%s\n\r",text);
+ // printf("%s recu : %d\n\r",text,sizeof(text));
// }
}