初めてのライブラリなので中身は....
Dependents: LowpassFilter_test
Revision 1:afcf1d34de29, committed 2015-03-30
- Comitter:
- tknara
- Date:
- Mon Mar 30 15:33:16 2015 +0000
- Parent:
- 0:40a6dc4f47d1
- Commit message:
- OK; ;
Changed in this revision
LIS3DH.cpp | Show annotated file Show diff for this revision Revisions of this file |
LIS3DH.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 40a6dc4f47d1 -r afcf1d34de29 LIS3DH.cpp --- a/LIS3DH.cpp Wed Feb 18 16:40:57 2015 +0000 +++ b/LIS3DH.cpp Mon Mar 30 15:33:16 2015 +0000 @@ -1,6 +1,6 @@ #include "LIS3DH.h" -LIS3DH::LIS3DH( PinName sda, PinName scl ) : i2c(sda, scl ) +LIS3DH::LIS3DH( PinName sda, PinName scl ) : i2c(sda, scl ) { }
diff -r 40a6dc4f47d1 -r afcf1d34de29 LIS3DH.h --- a/LIS3DH.h Wed Feb 18 16:40:57 2015 +0000 +++ b/LIS3DH.h Mon Mar 30 15:33:16 2015 +0000 @@ -1,5 +1,5 @@ -#ifndef LIS3DH -#define LIS3DH +#ifndef LIS3DH_H +#define LIS3DH_H #include "mbed.h" @@ -60,7 +60,7 @@ class LIS3DH { public: - LIS3DH(PinName sda , PinName scl ); + LIS3DH(PinName sda, PinName scl ); int start(void); void read_data(float a[]); private: