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.
Fork of I2C_Driver by
I2C_Driver.h
- Committer:
- cesarcazal
- Date:
- 2016-08-23
- Revision:
- 0:2514f1c72462
File content as of revision 0:2514f1c72462:
#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
