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
- Committer:
- Huot87
- Date:
- 2018-09-13
- Revision:
- 1:d33940a636b0
- Parent:
- 0:252a026cb80b
File content as of revision 1:d33940a636b0:
#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