Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LRAT-example-lorawan-REFACTOR-and-CLEAN-Branch
Diff: accelerometer.h
- Revision:
- 1:d33940a636b0
- Parent:
- 0:252a026cb80b
--- a/accelerometer.h Wed Sep 12 20:08:50 2018 +0000 +++ b/accelerometer.h Thu Sep 13 18:13:45 2018 +0000 @@ -1,9 +1,50 @@ #ifndef ACCELEROMETER_H_ #define ACCELEROMETER_H_ +#include "mbed.h" + class Accelerometer { - + public: + + /** + */ + Accelerometer(); + + /** + */ + virtual ~Accelerometer(); + + /** + */ + void setters(I2C *_i2c, char *_buf); + + /** + */ + void dumpCfg(); + + /** + */ + void onIRQ(); + + /** + */ + void init(); + + /** + */ + //void read(); + + /** + */ + char *buf; + + private: + /** + */ + I2C *i2c; + + InterruptIn accPin; }; #endif \ No newline at end of file