PARTYYYY

Dependencies:   mbed MMA8452

Committer:
evrast
Date:
Mon Sep 04 23:39:44 2017 +0000
Revision:
4:ab14f0e33f2b
Parent:
3:56cd9dff3b5f
Child:
5:70db90b673b9
More dank accelerometer

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 0:c2282db9d19e 9
evrast 3:56cd9dff3b5f 10 MMA8452 acc;
evrast 3:56cd9dff3b5f 11 I2C i2c;
evrast 3:56cd9dff3b5f 12
evrast 3:56cd9dff3b5f 13 Serial pc;
evrast 3:56cd9dff3b5f 14 public:
evrast 3:56cd9dff3b5f 15 void writeByte(int Regist,int data);
evrast 4:ab14f0e33f2b 16 void readxyzAngle(double *angle);
evrast 3:56cd9dff3b5f 17 int readMultiByte(int regist);
evrast 3:56cd9dff3b5f 18 Accelerometre();
evrast 4:ab14f0e33f2b 19
evrast 4:ab14f0e33f2b 20 private:
evrast 4:ab14f0e33f2b 21 double AngleCalculation(double ZValue);
evrast 0:c2282db9d19e 22
ThierryLeonard 1:ad54e8b7ac20 23 };
evrast 0:c2282db9d19e 24