![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
AddDetails.cpp
- Committer:
- aidanPJG
- Date:
- 2015-09-03
- Revision:
- 71:60f06e7e50a3
- Parent:
- 56:bf08d9e50ccc
File content as of revision 71:60f06e7e50a3:
#include "mbed.h" #include <utility> #include <string> extern Serial pc; DigitalOut myled(LED1); string details() //not used curr. { // pc.printf("Ready to Read.\n"); // pc.printf("Enter the number of sensors\n"); string details[6]; for(int i = 0; i<5 ; i++) { while(1) { if (pc.readable()) { pc.scanf("%s", &details[i]); break; myled = 1; } } } if (pc.readable()) { string start; pc.scanf("%s", start); if (start == "go") { printf("herema"); } return("foo"); } }