PAT9125 on K64F
Dependencies: pat9125_mbed mbed
Diff: pat9125_mbed/pat9125_i2c.cpp
- Revision:
- 0:411244c71423
diff -r 000000000000 -r 411244c71423 pat9125_mbed/pat9125_i2c.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pat9125_mbed/pat9125_i2c.cpp Tue Oct 03 07:26:38 2017 +0000 @@ -0,0 +1,20 @@ +#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 ; +} \ No newline at end of file