IGOR / Mbed 2 deprecated PONY_Ph0-uAXIS

Dependencies:   C027 C027_Support M2XStreamClient PowerControl jsonlite mbed-rtos mbed

Fork of PONY_Ph0-uAXIS by Sean McBeath

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