![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
02/07/15
Dependencies: mbed
AddDetails.cpp
- Committer:
- aidanPJG
- Date:
- 2015-07-28
- Revision:
- 56:bf08d9e50ccc
File content as of revision 56:bf08d9e50ccc:
#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"); } }