Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ReferredCoursework2016 by
main.cpp
00001 /*main.cpp*/ 00002 #include "mbed.h" 00003 #include "x_nucleo_iks01a1.h" 00004 #include "sensor.h" 00005 #include "buffer.h" 00006 00007 Thread sensorThread; 00008 00009 /* Simple main function that calls the required functions*/ 00010 int main() { 00011 00012 printf("\r\n--- Starting new run ---\r\n"); 00013 00014 wait(3); 00015 00016 sensorThread.start(sensor_run); 00017 Thread::wait(0.1); 00018 00019 while (1) { 00020 00021 print_averages(); 00022 00023 Thread::wait(0.1); 00024 } 00025 00026 00027 }
Generated on Sat Jul 16 2022 05:47:21 by
