Library for PAT9125 on L476RG platform

Fork of pat9125_mbed by PixArt Imaging

pat9125_i2c.cpp

Committer:
pixus_mbed
Date:
2018-02-01
Revision:
1:4b7c15d9c864
Parent:
0:3459848530ee

File content as of revision 1:4b7c15d9c864:

#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 ;
}