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: C027 C027_Support M2XStreamClient PowerControl jsonlite mbed-rtos mbed
Fork of PONY_Ph0-uAXIS by
Diff: PONY_sense.h
- Revision:
- 41:f603d76dc6fe
- Child:
- 51:61a1ec3c56fc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PONY_sense.h Tue Dec 29 06:56:52 2015 +0000
@@ -0,0 +1,41 @@
+/*
+
+PONY_sense.h
+(C) 2015 Igor Institute
+
+*/
+#include "mbed.h"
+#include <math.h>
+#include "M2XStreamClient.h"
+
+// Sensor pin definitions
+#define AINTOV(c) 3.3*c // Our A2D has a default reference voltage of 3.3V
+
+
+
+
+// Define a structure to hold temperature tuples
+struct tempstamp {
+ float temp;
+ //struct tm stamp;
+} ;
+
+float thermistorToTemp(float thermVoltage);
+float getTemp(AnalogIn*);
+int logTemp(AnalogIn*, float*, M2XStreamClient*);
+
+
+void LIS331write(I2C*, int, int);
+int LIS331read(I2C*, const int, int*);
+int LIS331read(I2C*, const int);
+
+
+
+
+int configureAccel(I2C*);
+int accelWhoAmI (I2C*);
+
+
+int accelX (I2C*);
+int accelY (I2C*);
+int accelZ (I2C*);
\ No newline at end of file
