A library for simulate Arduino's Wire library.
Fork of I2C_Driver by
Diff: I2C_Driver.h
- Revision:
- 1:c6ab8afd3e63
- Parent:
- 0:2514f1c72462
--- a/I2C_Driver.h Tue Aug 23 16:23:15 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - - -#ifndef MBED_I2C_DRIVER_H -#define MBED_I2C_DRIVER_H - -#include "mbed.h" -#include "wire.h" - -void ini_i2c( int scl, int sda); -int write_i2c(uint8_t addr, uint8_t *pbuf, uint16_t length, uint8_t dev_addr); //Definicion de rutina de escritura. -int read_i2c(uint8_t addr, uint8_t *pbuf, uint16_t length, uint8_t dev_addr); //Definicion de rutina de lectura. - -#endif -