LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Committer:
ovidiup13
Date:
Sat May 30 14:58:44 2015 +0000
Revision:
6:49a007861c76
Child:
8:81ed1135ba02
integrated level meter functionality and added 3-way switch control

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 6:49a007861c76 14
ovidiup13 6:49a007861c76 15 char readByte(char address, char reg);
ovidiup13 6:49a007861c76 16
ovidiup13 6:49a007861c76 17 void writeByte(char address, char reg,char value);
ovidiup13 6:49a007861c76 18
ovidiup13 6:49a007861c76 19 void initSensors (void);
ovidiup13 6:49a007861c76 20
ovidiup13 6:49a007861c76 21 void LSM303 (SensorState_t * state);
ovidiup13 6:49a007861c76 22
ovidiup13 6:49a007861c76 23 void calc_avrg_ac(Result_avrg* result,int samples);
ovidiup13 6:49a007861c76 24
ovidiup13 6:49a007861c76 25 void calc_avrg_or(Result_avrg* result,int samples);
ovidiup13 6:49a007861c76 26
ovidiup13 6:49a007861c76 27 void calc_diff(Result_avrg* r1, Result_avrg* r2);