PARTYYYY

Dependencies:   mbed MMA8452

Committer:
evrast
Date:
Tue Sep 05 00:05:38 2017 +0000
Revision:
5:70db90b673b9
Parent:
2:3576839565ae
Parent:
4:ab14f0e33f2b
Child:
7:b1b4db3eedb4
Merged;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
evrast 0:c2282db9d19e 1 #include "mbed.h"
evrast 3:56cd9dff3b5f 2 #include "MMA8452.h"
evrast 0:c2282db9d19e 3
evrast 0:c2282db9d19e 4 class Accelerometre{
evrast 0:c2282db9d19e 5
evrast 4:ab14f0e33f2b 6 double const PI = 3.14159265359;
evrast 3:56cd9dff3b5f 7 int const WRITE_DATA = 0x38;
evrast 3:56cd9dff3b5f 8 int const READ_DATA = 0x39;
evrast 5:70db90b673b9 9 MMA8452 acc;
evrast 3:56cd9dff3b5f 10 I2C i2c;
evrast 3:56cd9dff3b5f 11
evrast 3:56cd9dff3b5f 12 Serial pc;
evrast 3:56cd9dff3b5f 13 public:
evrast 3:56cd9dff3b5f 14 void writeByte(int Regist,int data);
evrast 4:ab14f0e33f2b 15 void readxyzAngle(double *angle);
evrast 3:56cd9dff3b5f 16 int readMultiByte(int regist);
evrast 3:56cd9dff3b5f 17 Accelerometre();
evrast 4:ab14f0e33f2b 18
evrast 4:ab14f0e33f2b 19 private:
evrast 4:ab14f0e33f2b 20 double AngleCalculation(double ZValue);
evrast 0:c2282db9d19e 21
evrast 5:70db90b673b9 22 };