Finished project.

Dependencies:   X_NUCLEO_COMMON

Fork of ReferredCoursework2016 by Stage-1 Students SoCEM

main.cpp

Committer:
J_Satchell
Date:
2017-08-17
Revision:
90:38dfa3f350aa
Parent:
89:c55aa4c1187f
Child:
91:cd9fcd45ecf6

File content as of revision 90:38dfa3f350aa:

/*main.cpp*/
#include "mbed.h"
#include "x_nucleo_iks01a1.h"
#include "sensor.h"
#include "buffer.h"

Thread sensorThread;

/* Simple main function that calls the required functions*/
int main() {

  printf("\r\n--- Starting new run ---\r\n");

  wait(3);

  while (1) {
     
    sensorThread.start(sensor_run);
    print_averages();     
    
    wait(0.1);
  }


}