Jake Billingham
/
computingproject
JKDVSK`
Fork of mbed_menu by
Diff: menu_menu.cpp
- Revision:
- 3:551061b40ccc
- Parent:
- 2:2b7eb44d597d
- Child:
- 4:f1fcad386421
--- a/menu_menu.cpp Wed Nov 08 11:36:05 2017 +0000 +++ b/menu_menu.cpp Wed Nov 08 11:37:44 2017 +0000 @@ -2,14 +2,8 @@ #include "mbed.h" #include "stdio.h" #include "math.h" -#include "ADXL362.h" +#include "ADXL362.h -//define constants high and low for entire program -#define HIGH 1 -#define LOW 0 - -//Define LED to be used to show mbed is operational -DigitalOut myled1(LED1); //Define serial connection Serial pc(USBTX, USBRX); //Define accelerometer @@ -40,7 +34,6 @@ { if(!strcmp(res,"1")==0)//if user command in matlab is 1 write the sample settings into a file { - myled1 = HIGH; char N[1000];//To store the number of samples which is received from the matlab pc.scanf("%s\n",&N);//to get the number of samples input from the matlab samplesettings = fopen("/local/samplesettings.txt", "w");//Open file for writing