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.
Dependencies: pat9125_mbed mbed
pat9125_mbed/pat9125_i2c.cpp
- Committer:
- pixus_mbed
- Date:
- 2017-10-03
- Revision:
- 0:411244c71423
File content as of revision 0:411244c71423:
#include "pat9125_i2c.h"
static pat9125_i2c *_self ;
static PinName _sda ;
static PinName _scl ;
pat9125_i2c::pat9125_i2c(PinName sda, PinName scl) : I2C(sda, scl)
{
_self = this ;
_sda = sda ,
_scl = scl ;
}
pat9125_i2c* pat9125_i2c::reset()
{
delete _self ;
_self = new pat9125_i2c(_sda, _scl);
return _self ;
}