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.
Dependencies: MPU9250_SPI SDFileSystem XBeeLib
Diff: event.cpp
- Revision:
- 24:eed68c95160c
- Parent:
- 23:aad5fd1b3ef9
- Child:
- 25:86137c182a17
--- a/event.cpp Wed Oct 25 13:24:05 2017 +0000
+++ b/event.cpp Fri Oct 27 09:59:32 2017 +0000
@@ -7,11 +7,8 @@
* Date: 12-Oct-2017
* Version: V0.1
*/
-#include "mbed.h"
+
#include "event.h"
-#include "XBeeLib.h"
-
-extern XBeeLib::XBeeZB XBee;
void CheckInputBuffer(void)
{
@@ -21,7 +18,20 @@
void ReadIMUData(void)
{
+ imu.read_acc();
+ PC.printf("Time: %d:\t%d,%10.3f,%10.3f,%10.3f\n",
+ time_stamp.read_ms(),
+ micro.read_u16(),
+ imu.accelerometer_data[0],
+ imu.accelerometer_data[1],
+ imu.accelerometer_data[2]);
+}
+
+void ReadMicroData(void)
+{
+ // Reading the analog input (Microphone)
+ // array = micro.read_u16();
}
/*

