FN

Dependencies:   mbed RF24Network RF24

Files at this revision

API Documentation at this revision

Comitter:
wesleytiem
Date:
Mon Jan 21 15:18:04 2019 +0000
Parent:
3:d605536db315
Child:
5:bfef4ea383be
Commit message:
asdasd

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Nov 05 05:59:18 2015 +0000
+++ b/main.cpp	Mon Jan 21 15:18:04 2019 +0000
@@ -4,13 +4,7 @@
 
 Serial pc(USBTX, USBRX);
 
-#define nrf_CE      D9
-#define nrf_CSN     D10
-#define spi_SCK     D3
-#define spi_MOSI    D4
-#define spi_MISO    D5
-
-RF24 radio(spi_MOSI, spi_MISO, spi_SCK, nrf_CE, nrf_CSN );
+RF24 radio(SPI_MOSI, SPI_MISO, SPI_SCK, D9, SPI_CS );
 
 // Network uses that radio
 RF24Network network(radio);
@@ -42,7 +36,7 @@
 
 int main()
 {
-    pc.baud(921600);
+    pc.baud(115200);
     wait_ms(1000);
 
     pc.printf("mBed RF24Network node: Tx\n");
@@ -71,9 +65,9 @@
             RF24NetworkHeader header_tx(/*to node*/ other_node);
             bool ok = network.write(header_tx,&payload_tx,sizeof(payload_tx));
             if (ok)
-                pc.printf("ok.\n");
+                pc.printf("ok.\r\n");
             else
-                pc.printf("failed.\n");
+                pc.printf("failed.\r\n");
         }
 
 
--- a/mbed.bld	Thu Nov 05 05:59:18 2015 +0000
+++ b/mbed.bld	Mon Jan 21 15:18:04 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file