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
accelerometer.h
00001 #ifndef ACCELEROMETER_H_ 00002 #define ACCELEROMETER_H_ 00003 00004 #include "mbed.h" 00005 00006 class Accelerometer 00007 { 00008 public: 00009 00010 /** 00011 */ 00012 Accelerometer(); 00013 00014 /** 00015 */ 00016 virtual ~Accelerometer(); 00017 00018 /** 00019 */ 00020 void setters(I2C *_i2c, char *_buf); 00021 00022 /** 00023 */ 00024 void dumpCfg(); 00025 00026 /** 00027 */ 00028 void onIRQ(); 00029 00030 /** 00031 */ 00032 void init(); 00033 00034 /** 00035 */ 00036 //void read(); 00037 00038 /** 00039 */ 00040 char *buf; 00041 00042 private: 00043 /** 00044 */ 00045 I2C *i2c; 00046 00047 InterruptIn accPin; 00048 }; 00049 00050 #endif
Generated on Wed Jul 13 2022 18:27:55 by
1.7.2