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.
Diff: I2Cdev.h
- Revision:
- 6:748bae310e1e
- Parent:
- 0:662207e34fba
--- a/I2Cdev.h Sat Nov 23 16:47:00 2013 +0000
+++ b/I2Cdev.h Thu Dec 03 02:23:23 2015 +0000
@@ -9,15 +9,11 @@
#include "mbed.h"
-#define I2C_SDA p28
-#define I2C_SCL p27
-
class I2Cdev {
private:
I2C i2c;
Serial debugSerial;
public:
- I2Cdev();
I2Cdev(PinName i2cSda, PinName i2cScl);
int8_t readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint16_t timeout=I2Cdev::readTimeout());