Finished project.

Dependencies:   X_NUCLEO_COMMON

Fork of ReferredCoursework2016 by Stage-1 Students SoCEM

main.cpp

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

File content as of revision 91:cd9fcd45ecf6:

/*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);
  
  sensorThread.start(sensor_run);
  Thread::wait(0.1);  
  
  while (1) {
         
    print_averages();     
    
    Thread::wait(0.1);
  }


}