Soft Serial is working, barely and grossly.

Dependencies:   SoftSerial mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
jonathanyost
Date:
Wed Jun 21 22:00:06 2017 +0000
Parent:
0:e584a98289a4
Commit message:
SoftSerial working minimum;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e584a98289a4 -r 05a16e044d09 main.cpp
--- a/main.cpp	Wed Jun 21 21:44:50 2017 +0000
+++ b/main.cpp	Wed Jun 21 22:00:06 2017 +0000
@@ -16,8 +16,8 @@
 Serial pc(D1, D0); // PA2, PA3
 
 const int nodeID = 0;
+//void initialize_node(SoftSerial &xbee);
 void initialize_node(SoftSerial &xbee);
-//Thread thread;
 
 int uptime = 0;
 
@@ -39,8 +39,7 @@
         */
         
         //xbee.printf("%d", nodeID);
-        xbee.printf("Times Through Loop: %d", uptime);
-        xbee.printf("\n");
+        xbee.printf("Times Through Loop: %d\n", uptime);
         //pc.printf("%d", nodeID);
         uptime++;
         wait(0.1);
@@ -58,6 +57,7 @@
     }
 }
 
+// Change back to SoftSerial
 void initialize_node(SoftSerial &xbee){
     // Eventually put stuff here. 
 }