LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Committer:
ovidiup13
Date:
Wed Jun 03 17:42:47 2015 +0000
Revision:
10:97389d774ae1
Parent:
8:81ed1135ba02
working version, comment out thermo in main;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ovidiup13 6:49a007861c76 1 // MBED reference code for the ST Micro STEVAL-MKI124V1 header board
ovidiup13 6:49a007861c76 2 // This board has: LPS331 pressure/temperature sensor, L3GD20 gyroscope and LSM303DLHC magnetometer/accelerometer
ovidiup13 6:49a007861c76 3 // Code accesses each of the 3 MEMS sensors and calculates pressure, temp, heading, tilt, roll and angular velocity
ovidiup13 6:49a007861c76 4 // Code is not optimized for efficienecy but instead for clarity of how you use the sensors
ovidiup13 6:49a007861c76 5 // ST application note AN3192 was key in developing the tilt-corrected compass
ovidiup13 6:49a007861c76 6 // Developed on an LPC1768
ovidiup13 6:49a007861c76 7 // By Liam Goudge. March 2014
ovidiup13 6:49a007861c76 8
ovidiup13 6:49a007861c76 9 #define LSM303_on
ovidiup13 6:49a007861c76 10
ovidiup13 6:49a007861c76 11 #include "mbed.h"
ovidiup13 6:49a007861c76 12 #include "MKI124V1.h"
ovidiup13 6:49a007861c76 13 #include "math.h"
ovidiup13 8:81ed1135ba02 14 #include "mlx90614.h"
ovidiup13 8:81ed1135ba02 15
ovidiup13 8:81ed1135ba02 16 float get_temperature(void);
ovidiup13 6:49a007861c76 17
ovidiup13 6:49a007861c76 18 char readByte(char address, char reg);
ovidiup13 6:49a007861c76 19
ovidiup13 6:49a007861c76 20 void writeByte(char address, char reg,char value);
ovidiup13 6:49a007861c76 21
ovidiup13 6:49a007861c76 22 void initSensors (void);
ovidiup13 6:49a007861c76 23
ovidiup13 6:49a007861c76 24 void LSM303 (SensorState_t * state);
ovidiup13 6:49a007861c76 25
ovidiup13 6:49a007861c76 26 void calc_avrg_ac(Result_avrg* result,int samples);
ovidiup13 6:49a007861c76 27
ovidiup13 6:49a007861c76 28 void calc_avrg_or(Result_avrg* result,int samples);
ovidiup13 6:49a007861c76 29
ovidiup13 6:49a007861c76 30 void calc_diff(Result_avrg* r1, Result_avrg* r2);