ADXL345 I2C + LCD + EEPROM
Diff: ADXL345_I2C.h
- Revision:
- 3:b4f3f0b17f41
- Parent:
- 2:84e6d627c619
- Child:
- 4:d36db669ff1c
diff -r 84e6d627c619 -r b4f3f0b17f41 ADXL345_I2C.h --- a/ADXL345_I2C.h Thu Aug 01 08:13:05 2013 +0000 +++ b/ADXL345_I2C.h Fri May 24 17:27:15 2019 +0000 @@ -55,6 +55,9 @@ * Includes */ #include "mbed.h" +#include "math.h" +#include "string" +#include "sstream" /** * Defines @@ -124,6 +127,13 @@ +#define LCD 0x50 +#define LCD_ON 0x41 +#define LCD_OFF 0x42 +#define LCD_CURSOR 0X45 +#define LCD_CLEAR 0x51 +#define LCD_CMD 0xFE + @@ -148,6 +158,8 @@ */ void getOutput(int* readings); + void LCDprint(float X, float Y, float Z); + /** * Read the device ID register on the device. *