PARTYYYY

Dependencies:   mbed MMA8452

Committer:
evrast
Date:
Mon Sep 04 22:39:02 2017 +0000
Revision:
3:56cd9dff3b5f
Parent:
1:ad54e8b7ac20
Child:
4:ab14f0e33f2b
MMA library;

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 3:56cd9dff3b5f 6 int const WRITE_DATA = 0x38;
evrast 3:56cd9dff3b5f 7 int const READ_DATA = 0x39;
evrast 0:c2282db9d19e 8
evrast 3:56cd9dff3b5f 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 3:56cd9dff3b5f 15 int readxyzAngle(double *x, double *y, double *z);
evrast 3:56cd9dff3b5f 16 int readMultiByte(int regist);
evrast 3:56cd9dff3b5f 17 Accelerometre();
evrast 0:c2282db9d19e 18
ThierryLeonard 1:ad54e8b7ac20 19 };
evrast 0:c2282db9d19e 20